Fix up refreshGroup

This commit is contained in:
lilia 2015-05-06 13:31:48 -07:00
parent f774047935
commit 748f32022a
2 changed files with 4 additions and 4 deletions

View file

@ -39601,10 +39601,10 @@ window.textsecure.messaging = function() {
groupId = getString(groupId);
var doUpdate = false;
Promise.all(devicesForNumber.map(function(device) {
return Promise.all(devicesForNumber.map(function(device) {
return textsecure.protocol_wrapper.getRegistrationId(device.encodedNumber).then(function(registrationId) {
return textsecure.storage.groups.needUpdateByDeviceRegistrationId(
groupId, number, devicesForNumber[i].encodedNumber, registrationId
groupId, number, device.encodedNumber, registrationId
).then(function(needUpdate) {
if (needUpdate) doUpdate = true;
});

View file

@ -97,10 +97,10 @@ window.textsecure.messaging = function() {
groupId = getString(groupId);
var doUpdate = false;
Promise.all(devicesForNumber.map(function(device) {
return Promise.all(devicesForNumber.map(function(device) {
return textsecure.protocol_wrapper.getRegistrationId(device.encodedNumber).then(function(registrationId) {
return textsecure.storage.groups.needUpdateByDeviceRegistrationId(
groupId, number, devicesForNumber[i].encodedNumber, registrationId
groupId, number, device.encodedNumber, registrationId
).then(function(needUpdate) {
if (needUpdate) doUpdate = true;
});