|
|
|
|
@ -38760,7 +38760,7 @@ OutgoingMessage.prototype = {
|
|
|
|
|
var updateDevices = [];
|
|
|
|
|
return Promise.all(deviceIds.map(function(deviceId) {
|
|
|
|
|
var address = new libsignal.SignalProtocolAddress(number, deviceId);
|
|
|
|
|
var sessionCipher = new libsignal.SessionCipher(textsecure.storage.protocol, address);
|
|
|
|
|
var sessionCipher = new libsignal.SessionCipher(textsecure.storage.protocol, address);
|
|
|
|
|
return sessionCipher.hasOpenSession().then(function(hasSession) {
|
|
|
|
|
if (!hasSession) {
|
|
|
|
|
updateDevices.push(deviceId);
|
|
|
|
|
|