|
|
@ -38513,20 +38513,11 @@ MessageReceiver.prototype.extend({
|
|
|
|
|
|
|
|
|
|
|
|
switch(decrypted.group.type) {
|
|
|
|
switch(decrypted.group.type) {
|
|
|
|
case textsecure.protobuf.GroupContext.Type.UPDATE:
|
|
|
|
case textsecure.protobuf.GroupContext.Type.UPDATE:
|
|
|
|
|
|
|
|
decrypted.body = null;
|
|
|
|
|
|
|
|
decrypted.attachments = [];
|
|
|
|
return textsecure.storage.groups.updateNumbers(
|
|
|
|
return textsecure.storage.groups.updateNumbers(
|
|
|
|
decrypted.group.id, decrypted.group.members
|
|
|
|
decrypted.group.id, decrypted.group.members
|
|
|
|
).then(function(added) {
|
|
|
|
);
|
|
|
|
decrypted.group.added = added;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (decrypted.group.avatar === null &&
|
|
|
|
|
|
|
|
decrypted.group.added.length == 0 &&
|
|
|
|
|
|
|
|
decrypted.group.name === null) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
decrypted.body = null;
|
|
|
|
|
|
|
|
decrypted.attachments = [];
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case textsecure.protobuf.GroupContext.Type.QUIT:
|
|
|
|
case textsecure.protobuf.GroupContext.Type.QUIT:
|
|
|
|