Note to Self: On just expire timer update, set TIMER_UPDATE flag
This commit is contained in:
parent
ba461eb44a
commit
c76d537482
2 changed files with 7 additions and 2 deletions
|
@ -1258,6 +1258,8 @@
|
||||||
let promise;
|
let promise;
|
||||||
|
|
||||||
if (this.isMe()) {
|
if (this.isMe()) {
|
||||||
|
const flags =
|
||||||
|
textsecure.protobuf.DataMessage.Flags.EXPIRATION_TIMER_UPDATE;
|
||||||
const dataMessage = await textsecure.messaging.getMessageProto(
|
const dataMessage = await textsecure.messaging.getMessageProto(
|
||||||
this.get('id'),
|
this.get('id'),
|
||||||
null,
|
null,
|
||||||
|
@ -1266,7 +1268,8 @@
|
||||||
[],
|
[],
|
||||||
message.get('sent_at'),
|
message.get('sent_at'),
|
||||||
expireTimer,
|
expireTimer,
|
||||||
profileKey
|
profileKey,
|
||||||
|
flags
|
||||||
);
|
);
|
||||||
return message.sendSyncMessageOnly(dataMessage);
|
return message.sendSyncMessageOnly(dataMessage);
|
||||||
}
|
}
|
||||||
|
|
|
@ -772,7 +772,8 @@ MessageSender.prototype = {
|
||||||
preview,
|
preview,
|
||||||
timestamp,
|
timestamp,
|
||||||
expireTimer,
|
expireTimer,
|
||||||
profileKey
|
profileKey,
|
||||||
|
flags
|
||||||
) {
|
) {
|
||||||
const attributes = {
|
const attributes = {
|
||||||
recipients: [number],
|
recipients: [number],
|
||||||
|
@ -783,6 +784,7 @@ MessageSender.prototype = {
|
||||||
preview,
|
preview,
|
||||||
expireTimer,
|
expireTimer,
|
||||||
profileKey,
|
profileKey,
|
||||||
|
flags,
|
||||||
};
|
};
|
||||||
|
|
||||||
const message = new Message(attributes);
|
const message = new Message(attributes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue