Group updates never have body or attachments
Why would they? And group.added isn't used anywhere else. // FREEBIE
This commit is contained in:
parent
04f0142b23
commit
053bf20185
2 changed files with 6 additions and 24 deletions
|
@ -38513,20 +38513,11 @@ MessageReceiver.prototype.extend({
|
|||
|
||||
switch(decrypted.group.type) {
|
||||
case textsecure.protobuf.GroupContext.Type.UPDATE:
|
||||
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 = [];
|
||||
});
|
||||
return textsecure.storage.groups.updateNumbers(
|
||||
decrypted.group.id, decrypted.group.members
|
||||
);
|
||||
|
||||
break;
|
||||
case textsecure.protobuf.GroupContext.Type.QUIT:
|
||||
|
|
|
@ -436,20 +436,11 @@ MessageReceiver.prototype.extend({
|
|||
|
||||
switch(decrypted.group.type) {
|
||||
case textsecure.protobuf.GroupContext.Type.UPDATE:
|
||||
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 = [];
|
||||
});
|
||||
return textsecure.storage.groups.updateNumbers(
|
||||
decrypted.group.id, decrypted.group.members
|
||||
);
|
||||
|
||||
break;
|
||||
case textsecure.protobuf.GroupContext.Type.QUIT:
|
||||
|
|
Loading…
Reference in a new issue