Note to Self timer fixes for bugs reported by beta users

This commit is contained in:
Scott Nonnenberg 2019-02-14 09:36:24 -08:00
parent 7c4ba5446c
commit af40ceda6c
3 changed files with 34 additions and 7 deletions

View file

@ -1257,10 +1257,24 @@
const sendOptions = this.getSendOptions();
let promise;
if (this.isMe()) {
const dataMessage = await textsecure.messaging.getMessageProto(
this.get('id'),
null,
[],
null,
[],
message.get('sent_at'),
expireTimer,
profileKey
);
return message.sendSyncMessageOnly(dataMessage);
}
if (this.get('type') === 'private') {
promise = textsecure.messaging.sendExpirationTimerUpdateToNumber(
this.get('id'),
this.get('expireTimer'),
expireTimer,
message.get('sent_at'),
profileKey,
sendOptions
@ -1269,7 +1283,7 @@
promise = textsecure.messaging.sendExpirationTimerUpdateToGroup(
this.get('id'),
this.getRecipients(),
this.get('expireTimer'),
expireTimer,
message.get('sent_at'),
profileKey,
sendOptions