Note to Self: set expirationStartTimestamp before sending sync
This commit is contained in:
parent
eb7ad48951
commit
dcd16775c3
1 changed files with 5 additions and 2 deletions
|
@ -1066,12 +1066,15 @@
|
|||
this.set({ dataMessage });
|
||||
|
||||
try {
|
||||
const result = await this.sendSyncMessage();
|
||||
this.set({
|
||||
// These are the same as a normal send
|
||||
// These are the same as a normal send()
|
||||
sent_to: [this.OUR_NUMBER],
|
||||
sent: true,
|
||||
expirationStartTimestamp: Date.now(),
|
||||
});
|
||||
const result = await this.sendSyncMessage();
|
||||
this.set({
|
||||
// We have to do this afterward, since we didn't have a previous send!
|
||||
unidentifiedDeliveries: result ? result.unidentifiedDeliveries : null,
|
||||
|
||||
// These are unique to a Note to Self message - immediately read/delivered
|
||||
|
|
Loading…
Add table
Reference in a new issue