From 7d08e1132dda305ca9e8a8d58c9baee46518e61e Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 4 Jun 2015 11:56:26 -0700 Subject: [PATCH] Fix close session --- js/libtextsecure.js | 2 +- libtextsecure/sendmessage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index ff7d2b0f26..7b633dabdd 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -39846,7 +39846,7 @@ window.textsecure.messaging = function() { return sendIndividualProto(number, proto, Date.now()).then(function(res) { return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devices) { return Promise.all(devices.map(function(device) { - return textsecure.protocol_wrapper.closeOpenSessionForDevice(devices.encodedNumber); + return textsecure.protocol_wrapper.closeOpenSessionForDevice(device.encodedNumber); })).then(function() { return res; }); diff --git a/libtextsecure/sendmessage.js b/libtextsecure/sendmessage.js index 7ff71134cf..263a285952 100644 --- a/libtextsecure/sendmessage.js +++ b/libtextsecure/sendmessage.js @@ -321,7 +321,7 @@ window.textsecure.messaging = function() { return sendIndividualProto(number, proto, Date.now()).then(function(res) { return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devices) { return Promise.all(devices.map(function(device) { - return textsecure.protocol_wrapper.closeOpenSessionForDevice(devices.encodedNumber); + return textsecure.protocol_wrapper.closeOpenSessionForDevice(device.encodedNumber); })).then(function() { return res; });