Fix group timer updates
This commit is contained in:
parent
0bba096510
commit
d52050d43f
2 changed files with 10 additions and 8 deletions
|
@ -38467,14 +38467,15 @@ MessageReceiver.prototype.extend({
|
||||||
decrypted.expireTimer = 0;
|
decrypted.expireTimer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (decrypted.flags & ( textsecure.protobuf.DataMessage.Flags.END_SESSION
|
if (decrypted.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION) {
|
||||||
| textsecure.protobuf.DataMessage.Flags.EXPIRATION_TIMER_UPDATE )) {
|
|
||||||
decrypted.body = null;
|
decrypted.body = null;
|
||||||
decrypted.attachments = [];
|
decrypted.attachments = [];
|
||||||
decrypted.group = null;
|
decrypted.group = null;
|
||||||
return Promise.resolve(decrypted);
|
return Promise.resolve(decrypted);
|
||||||
}
|
} else if (decrypted.flags & textsecure.protobuf.DataMessage.Flags.EXPIRATION_TIMER_UPDATE ) {
|
||||||
if (decrypted.flags != 0) {
|
decrypted.body = null;
|
||||||
|
decrypted.attachments = [];
|
||||||
|
} else if (decrypted.flags != 0) {
|
||||||
throw new Error("Unknown flags in message");
|
throw new Error("Unknown flags in message");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -396,14 +396,15 @@ MessageReceiver.prototype.extend({
|
||||||
decrypted.expireTimer = 0;
|
decrypted.expireTimer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (decrypted.flags & ( textsecure.protobuf.DataMessage.Flags.END_SESSION
|
if (decrypted.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION) {
|
||||||
| textsecure.protobuf.DataMessage.Flags.EXPIRATION_TIMER_UPDATE )) {
|
|
||||||
decrypted.body = null;
|
decrypted.body = null;
|
||||||
decrypted.attachments = [];
|
decrypted.attachments = [];
|
||||||
decrypted.group = null;
|
decrypted.group = null;
|
||||||
return Promise.resolve(decrypted);
|
return Promise.resolve(decrypted);
|
||||||
}
|
} else if (decrypted.flags & textsecure.protobuf.DataMessage.Flags.EXPIRATION_TIMER_UPDATE ) {
|
||||||
if (decrypted.flags != 0) {
|
decrypted.body = null;
|
||||||
|
decrypted.attachments = [];
|
||||||
|
} else if (decrypted.flags != 0) {
|
||||||
throw new Error("Unknown flags in message");
|
throw new Error("Unknown flags in message");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue