|
|
@ -38741,8 +38741,10 @@ textsecure.processDecrypted = function(decrypted, source) {
|
|
|
|
if (decrypted.flags == null)
|
|
|
|
if (decrypted.flags == null)
|
|
|
|
decrypted.flags = 0;
|
|
|
|
decrypted.flags = 0;
|
|
|
|
|
|
|
|
|
|
|
|
if (decrypted.sync !== null && textsecure.storage.user.getNumber() != source)
|
|
|
|
if (decrypted.sync !== null && textsecure.storage.user.getNumber() != source) {
|
|
|
|
throw new Error("Got sync context on a message not from a peer device");
|
|
|
|
// Ignore erroneous or malicious sync context from different number
|
|
|
|
|
|
|
|
decrypted.sync = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((decrypted.flags & textsecure.protobuf.PushMessageContent.Flags.END_SESSION)
|
|
|
|
if ((decrypted.flags & textsecure.protobuf.PushMessageContent.Flags.END_SESSION)
|
|
|
|
== textsecure.protobuf.PushMessageContent.Flags.END_SESSION) {
|
|
|
|
== textsecure.protobuf.PushMessageContent.Flags.END_SESSION) {
|
|
|
|