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:
David Baker
2018-01-17 19:27:22 +00:00
parent fb29da4e40
commit ea6974fc89
+1 -1
View File
@@ -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;
}
/**