Fix null flags in v3
This commit is contained in:
parent
0d4ae6a8cb
commit
a8908646aa
1 changed files with 3 additions and 0 deletions
|
@ -675,6 +675,9 @@ window.textsecure.subscribeToPush = function() {
|
||||||
// Note that messages may (generally) only perform one action and we ignore remaining fields
|
// Note that messages may (generally) only perform one action and we ignore remaining fields
|
||||||
// after the first action.
|
// after the first action.
|
||||||
|
|
||||||
|
if (decrypted.flags == null)
|
||||||
|
decrypted.flags = 0;
|
||||||
|
|
||||||
if ((decrypted.flags & textsecure.protos.PushMessageContentProtobuf.Flags.END_SESSION)
|
if ((decrypted.flags & textsecure.protos.PushMessageContentProtobuf.Flags.END_SESSION)
|
||||||
== textsecure.protos.PushMessageContentProtobuf.Flags.END_SESSION)
|
== textsecure.protos.PushMessageContentProtobuf.Flags.END_SESSION)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue