Skip to content

Commit

Permalink
Note to Self: On just expire timer update, set TIMER_UPDATE flag
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Mar 13, 2019
1 parent ba461eb commit c76d537
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion js/models/conversations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -1266,7 +1268,8 @@
[],
message.get('sent_at'),
expireTimer,
profileKey
profileKey,
flags
);
return message.sendSyncMessageOnly(dataMessage);
}
Expand Down
4 changes: 3 additions & 1 deletion libtextsecure/sendmessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,8 @@ MessageSender.prototype = {
preview,
timestamp,
expireTimer,
profileKey
profileKey,
flags
) {
const attributes = {
recipients: [number],
Expand All @@ -783,6 +784,7 @@ MessageSender.prototype = {
preview,
expireTimer,
profileKey,
flags,
};

const message = new Message(attributes);
Expand Down

0 comments on commit c76d537

Please sign in to comment.