mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 12:47:39 +00:00
@@ -39757,11 +39757,14 @@ OutgoingMessage.prototype = {
|
||||
if (updateDevices === undefined) {
|
||||
return this.server.getKeysForNumber(number).then(handleResult);
|
||||
} else {
|
||||
var promises = updateDevices.map(function(device) {
|
||||
return this.server.getKeysForNumber(number, device).then(handleResult);
|
||||
}.bind(this));
|
||||
var promise = Promise.resolve();
|
||||
for (var i in updateDevices) {
|
||||
promise = promise.then(function() {
|
||||
return this.server.getKeysForNumber(number, updateDevices[i]).then(handleResult);
|
||||
}.bind(this));
|
||||
}
|
||||
|
||||
return Promise.all(promises);
|
||||
return promise;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user