You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
fix check for empty cross-signing repsonse
This commit is contained in:
@@ -829,7 +829,11 @@ class DeviceListUpdateSerialiser {
|
|||||||
|
|
||||||
// now do the same for the cross-signing keys
|
// now do the same for the cross-signing keys
|
||||||
{
|
{
|
||||||
if (crossSigningResponse && Object.keys(crossSigningResponse).length) {
|
// FIXME: should we be ignoring empty cross-signing responses, or
|
||||||
|
// should we be dropping the keys?
|
||||||
|
if (crossSigningResponse
|
||||||
|
&& (crossSigningResponse.master || crossSigningResponse.self_signing
|
||||||
|
|| crossSigningResponse.user_signing)) {
|
||||||
const crossSigning
|
const crossSigning
|
||||||
= this._deviceList.getStoredCrossSigningForUser(userId)
|
= this._deviceList.getStoredCrossSigningForUser(userId)
|
||||||
|| new CrossSigningInfo(userId);
|
|| new CrossSigningInfo(userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user