fix: reverted code and updated comment on readReceipts pending qa

pull/2660/head
William Grant 2 years ago
parent df27fa1b82
commit b601c11871

@ -60,8 +60,8 @@ async function onReadReceipt(receipt: { source: string; timestamp: number; readA
sent: true, sent: true,
}); });
// I think this is redundent since expirationStartTimestamp is always undefined and this the function will null return // TODO this needs verification through qa once merged that it works
if (message.isExpiring() && expirationStartTimestamp) { if (message.isExpiring() && !expirationStartTimestamp) {
// This will save the message for us while starting the timer // This will save the message for us while starting the timer
await message.setToExpire(); await message.setToExpire();
} else { } else {

Loading…
Cancel
Save