From b601c11871f92e03f16475076de2715b859af72a Mon Sep 17 00:00:00 2001 From: William Grant Date: Thu, 18 May 2023 16:01:31 +1000 Subject: [PATCH] fix: reverted code and updated comment on readReceipts pending qa --- ts/util/readReceipts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/util/readReceipts.ts b/ts/util/readReceipts.ts index 2404e12f9..c4df3e28e 100644 --- a/ts/util/readReceipts.ts +++ b/ts/util/readReceipts.ts @@ -60,8 +60,8 @@ async function onReadReceipt(receipt: { source: string; timestamp: number; readA sent: true, }); - // I think this is redundent since expirationStartTimestamp is always undefined and this the function will null return - if (message.isExpiring() && expirationStartTimestamp) { + // TODO this needs verification through qa once merged that it works + if (message.isExpiring() && !expirationStartTimestamp) { // This will save the message for us while starting the timer await message.setToExpire(); } else {