mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Return end session messages to the frontend
So we can save them in the message history, and because the caller expects a promise.
This commit is contained in:
@@ -163,7 +163,7 @@ textsecure.processDecrypted = function(decrypted, source) {
|
||||
|
||||
if ((decrypted.flags & textsecure.protobuf.PushMessageContent.Flags.END_SESSION)
|
||||
== textsecure.protobuf.PushMessageContent.Flags.END_SESSION)
|
||||
return;
|
||||
return Promise.resolve(decrypted);
|
||||
if (decrypted.flags != 0) {
|
||||
throw new Error("Unknown flags in message");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user