From d8efc4d2165eb1f1de81a9809e9ea9691bc8cd98 Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 11 Jan 2015 12:33:55 -1000 Subject: [PATCH] Handle incoming group avatars on group creation --- js/helpers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/helpers.js b/js/helpers.js index 72a153f3..bd373993 100644 --- a/js/helpers.js +++ b/js/helpers.js @@ -173,6 +173,9 @@ textsecure.processDecrypted = function(decrypted, source) { throw new Error("Got message for unknown group"); } textsecure.storage.groups.createNewGroup(decrypted.group.members, decrypted.group.id); + if (decrypted.group.avatar !== null) { + promises.push(handleAttachment(decrypted.group.avatar)); + } } else { var fromIndex = existingGroup.indexOf(source);