Return null if device data isn't set
This is more normal, and the code doesn't expect to get empty objects here which is reasonable since it never sets one.
This commit is contained in:
@@ -37,7 +37,7 @@ export default class MemoryCryptoStore {
|
||||
// Map of {senderCurve25519Key+'/'+sessionId -> session data object}
|
||||
this._inboundGroupSessions = {};
|
||||
// Opaque device data object
|
||||
this._deviceData = {};
|
||||
this._deviceData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user