Handle incoming group avatars on group creation

This commit is contained in:
lilia 2015-01-11 12:33:55 -10:00
parent 3d6c251fd1
commit d8efc4d216

View file

@ -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);