diff --git a/js/models/conversations.js b/js/models/conversations.js index ada59edc0d..0234f0f6e1 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 3bb4fa3968..c9f3a55b44 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);