Improve syncing of in-memory expirationStartTimestamp
This commit is contained in:
parent
f853a42756
commit
2d9b814b35
2 changed files with 9 additions and 1 deletions
|
@ -373,6 +373,7 @@ export type GetUnreadByConversationAndMarkReadResultType = Array<
|
|||
| 'type'
|
||||
| 'readStatus'
|
||||
| 'seenStatus'
|
||||
| 'expirationStartTimestamp'
|
||||
>
|
||||
>;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue