Fix longstanding(?) attachment bug
This commit is contained in:
parent
c2d1d816f2
commit
8f49d201e6
1 changed files with 2 additions and 2 deletions
|
@ -516,8 +516,8 @@ window.textsecure.subscribeToPush = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
var promises = [];
|
var promises = [];
|
||||||
for (var i = 0; i < decrypted.message.attachments.length; i++)
|
for (var i = 0; i < decrypted.attachments.length; i++)
|
||||||
promises[i] = handleAttachment(decrypted.message.attachments[i]);
|
promises[i] = handleAttachment(decrypted.attachments[i]);
|
||||||
return Promise.all(promises).then(function() {
|
return Promise.all(promises).then(function() {
|
||||||
message_callback({pushMessage: proto, message: decrypted});
|
message_callback({pushMessage: proto, message: decrypted});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue