diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 4501de6ec..3ee30e82f 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -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); diff --git a/libtextsecure/outgoing_message.js b/libtextsecure/outgoing_message.js index 95a0e1540..ac78ea4c3 100644 --- a/libtextsecure/outgoing_message.js +++ b/libtextsecure/outgoing_message.js @@ -187,7 +187,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);