diff --git a/js/helpers.js b/js/helpers.js index a4f196e6f3..d17075a300 100644 --- a/js/helpers.js +++ b/js/helpers.js @@ -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}); });