Improve syncing of in-memory expirationStartTimestamp

This commit is contained in:
trevor-signal 2024-06-26 16:51:11 -04:00 committed by GitHub
parent f853a42756
commit 2d9b814b35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -373,6 +373,7 @@ export type GetUnreadByConversationAndMarkReadResultType = Array<
| 'type'
| 'readStatus'
| 'seenStatus'
| 'expirationStartTimestamp'
>
>;

View file

@ -107,7 +107,14 @@ export async function markConversationRead(
);
// we update the in-memory MessageModel with fresh read/seen status
if (message) {
message.set(pick(messageSyncData, 'readStatus', 'seenStatus'));
message.set(
pick(
messageSyncData,
'readStatus',
'seenStatus',
'expirationStartTimestamp'
)
);
}
const {