Ignore END_SESSION on messages with a sync context
This commit is contained in:
parent
9c3f8a1868
commit
29192edcb8
2 changed files with 4 additions and 2 deletions
|
@ -139,7 +139,8 @@
|
|||
var finalMessage = textsecure.protobuf.PushMessageContent.decode(res[0]);
|
||||
|
||||
if ((finalMessage.flags & textsecure.protobuf.PushMessageContent.Flags.END_SESSION)
|
||||
== textsecure.protobuf.PushMessageContent.Flags.END_SESSION)
|
||||
== textsecure.protobuf.PushMessageContent.Flags.END_SESSION &&
|
||||
finalMessage.sync !== null)
|
||||
res[1]();
|
||||
|
||||
return finalMessage;
|
||||
|
|
|
@ -62,7 +62,8 @@
|
|||
var finalMessage = textsecure.protobuf.PushMessageContent.decode(res[0]);
|
||||
|
||||
if ((finalMessage.flags & textsecure.protobuf.PushMessageContent.Flags.END_SESSION)
|
||||
== textsecure.protobuf.PushMessageContent.Flags.END_SESSION)
|
||||
== textsecure.protobuf.PushMessageContent.Flags.END_SESSION &&
|
||||
finalMessage.sync !== null)
|
||||
res[1]();
|
||||
|
||||
return finalMessage;
|
||||
|
|
Loading…
Reference in a new issue