From dcd16775c3fead93f11e4c1b9fdcb93f1a381807 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 26 Feb 2019 16:14:47 -0800 Subject: [PATCH] Note to Self: set expirationStartTimestamp before sending sync --- js/models/messages.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/models/messages.js b/js/models/messages.js index b825a0e5d..2e19f96c2 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -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