Fix longstanding(?) attachment bug

This commit is contained in:
Matt Corallo 2014-05-31 13:33:41 -04:00
parent c2d1d816f2
commit 8f49d201e6
1 changed files with 2 additions and 2 deletions

View File

@ -516,8 +516,8 @@ window.textsecure.subscribeToPush = function() {
};
var promises = [];
for (var i = 0; i < decrypted.message.attachments.length; i++)
promises[i] = handleAttachment(decrypted.message.attachments[i]);
for (var i = 0; i < decrypted.attachments.length; i++)
promises[i] = handleAttachment(decrypted.attachments[i]);
return Promise.all(promises).then(function() {
message_callback({pushMessage: proto, message: decrypted});
});