From c76d53748282cf53514ab545ecd8246087874edb Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 13 Mar 2019 09:11:39 -0700 Subject: [PATCH] Note to Self: On just expire timer update, set TIMER_UPDATE flag --- js/models/conversations.js | 5 ++++- libtextsecure/sendmessage.js | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index ada59edc0..0234f0f6e 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -1258,6 +1258,8 @@ let promise; if (this.isMe()) { + const flags = + textsecure.protobuf.DataMessage.Flags.EXPIRATION_TIMER_UPDATE; const dataMessage = await textsecure.messaging.getMessageProto( this.get('id'), null, @@ -1266,7 +1268,8 @@ [], message.get('sent_at'), expireTimer, - profileKey + profileKey, + flags ); return message.sendSyncMessageOnly(dataMessage); } diff --git a/libtextsecure/sendmessage.js b/libtextsecure/sendmessage.js index 3bb4fa396..c9f3a55b4 100644 --- a/libtextsecure/sendmessage.js +++ b/libtextsecure/sendmessage.js @@ -772,7 +772,8 @@ MessageSender.prototype = { preview, timestamp, expireTimer, - profileKey + profileKey, + flags ) { const attributes = { recipients: [number], @@ -783,6 +784,7 @@ MessageSender.prototype = { preview, expireTimer, profileKey, + flags, }; const message = new Message(attributes);