Remove closeOpenSessionForDevice from protocol_wrapper
// FREEBIE
This commit is contained in:
parent
0d5ec60a7a
commit
0483fa2f97
5 changed files with 50 additions and 42 deletions
|
@ -298,7 +298,10 @@ MessageSender.prototype = {
|
|||
return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devices) {
|
||||
return Promise.all(devices.map(function(device) {
|
||||
console.log('closing session for', device.encodedNumber);
|
||||
return textsecure.protocol_wrapper.closeOpenSessionForDevice(device.encodedNumber);
|
||||
|
||||
var address = libsignal.SignalProtocolAddress.fromString(device.encodedNumber);
|
||||
var sessionCipher = new libsignal.SessionCipher(textsecure.storage.protocol, address);
|
||||
return sessionCipher.closeOpenSessionForDevice();
|
||||
})).then(function() {
|
||||
return res;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue