Remove hasOpenSession from protocol_wrapper
// FREEBIE
This commit is contained in:
@@ -35501,11 +35501,6 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ
|
||||
},
|
||||
createIdentityKeyRecvSocket: function() {
|
||||
return protocolInstance.createIdentityKeyRecvSocket();
|
||||
},
|
||||
hasOpenSession: function(encodedNumber) {
|
||||
return queueJobForNumber(encodedNumber, function() {
|
||||
return protocolInstance.hasOpenSession(encodedNumber);
|
||||
});
|
||||
}
|
||||
};
|
||||
})();
|
||||
@@ -35751,8 +35746,9 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ
|
||||
}
|
||||
var updateDevices = [];
|
||||
return Promise.all(deviceIds.map(function(deviceId) {
|
||||
var address = new libsignal.SignalProtocolAddress(number, deviceId).toString();
|
||||
return textsecure.protocol_wrapper.hasOpenSession(address).then(function(hasSession) {
|
||||
var address = new libsignal.SignalProtocolAddress(number, deviceId);
|
||||
var sessionCipher = new libsignal.SessionCipher(textsecure.storage.protocol, address);
|
||||
return sessionCipher.hasOpenSession().then(function(hasSession) {
|
||||
if (!hasSession) {
|
||||
updateDevices.push(deviceId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user