Fix close session

pull/749/head
lilia 10 years ago
parent f4a206b266
commit 7d08e1132d

@ -39846,7 +39846,7 @@ window.textsecure.messaging = function() {
return sendIndividualProto(number, proto, Date.now()).then(function(res) { return sendIndividualProto(number, proto, Date.now()).then(function(res) {
return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devices) { return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devices) {
return Promise.all(devices.map(function(device) { return Promise.all(devices.map(function(device) {
return textsecure.protocol_wrapper.closeOpenSessionForDevice(devices.encodedNumber); return textsecure.protocol_wrapper.closeOpenSessionForDevice(device.encodedNumber);
})).then(function() { })).then(function() {
return res; return res;
}); });

@ -321,7 +321,7 @@ window.textsecure.messaging = function() {
return sendIndividualProto(number, proto, Date.now()).then(function(res) { return sendIndividualProto(number, proto, Date.now()).then(function(res) {
return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devices) { return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devices) {
return Promise.all(devices.map(function(device) { return Promise.all(devices.map(function(device) {
return textsecure.protocol_wrapper.closeOpenSessionForDevice(devices.encodedNumber); return textsecure.protocol_wrapper.closeOpenSessionForDevice(device.encodedNumber);
})).then(function() { })).then(function() {
return res; return res;
}); });

Loading…
Cancel
Save