Group updates never have body or attachments

Why would they? And group.added isn't used anywhere else.

// FREEBIE
pull/749/head
lilia 8 years ago
parent 04f0142b23
commit 053bf20185

@ -38513,20 +38513,11 @@ MessageReceiver.prototype.extend({
switch(decrypted.group.type) {
case textsecure.protobuf.GroupContext.Type.UPDATE:
decrypted.body = null;
decrypted.attachments = [];
return textsecure.storage.groups.updateNumbers(
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;
case textsecure.protobuf.GroupContext.Type.QUIT:

@ -436,20 +436,11 @@ MessageReceiver.prototype.extend({
switch(decrypted.group.type) {
case textsecure.protobuf.GroupContext.Type.UPDATE:
decrypted.body = null;
decrypted.attachments = [];
return textsecure.storage.groups.updateNumbers(
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;
case textsecure.protobuf.GroupContext.Type.QUIT:

Loading…
Cancel
Save