From 8f49d201e6fa2b316096295c0ccecc8a76cda7a3 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 31 May 2014 13:33:41 -0400 Subject: [PATCH] Fix longstanding(?) attachment bug --- js/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}); });