Fix test for presence of registrationId
This commit is contained in:
parent
17fdde0091
commit
963a424451
2
dist/libsignal-protocol.js
vendored
2
dist/libsignal-protocol.js
vendored
@ -35626,7 +35626,7 @@ Internal.SessionRecord = function() {
|
||||
},
|
||||
haveOpenSession: function() {
|
||||
var openSession = this.getOpenSession();
|
||||
return (!!openSession && !!openSession.registrationId);
|
||||
return (!!openSession && typeof openSession.registrationId === 'number');
|
||||
},
|
||||
|
||||
getSessionByBaseKey: function(baseKey) {
|
||||
|
||||
@ -127,7 +127,7 @@ Internal.SessionRecord = function() {
|
||||
},
|
||||
haveOpenSession: function() {
|
||||
var openSession = this.getOpenSession();
|
||||
return (!!openSession && !!openSession.registrationId);
|
||||
return (!!openSession && typeof openSession.registrationId === 'number');
|
||||
},
|
||||
|
||||
getSessionByBaseKey: function(baseKey) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user