Fix, display (image) attachments
This commit is contained in:
parent
2820ff8f2d
commit
ee2f43aba4
4 changed files with 17 additions and 4 deletions
|
@ -471,7 +471,9 @@ window.textsecure.subscribeToPush = function() {
|
|||
var promises = [];
|
||||
for (var i = 0; i < decrypted.message.attachments.length; i++)
|
||||
promises[i] = handleAttachment(decrypted.message.attachments[i]);
|
||||
return Promise.all(promises).then(message_callback);
|
||||
return Promise.all(promises).then(function() {
|
||||
message_callback(decrypted);
|
||||
});
|
||||
})
|
||||
}).catch(function(e) {
|
||||
console.log("Error handling incoming message: ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue