Ignore END_SESSION on messages with a sync context

This commit is contained in:
Matt Corallo
2015-02-25 17:33:45 -08:00
committed by lilia
parent 9c3f8a1868
commit 29192edcb8
2 changed files with 4 additions and 2 deletions

View File

@@ -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;