Improve syncing of in-memory expirationStartTimestamp
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
parent
148637de7d
commit
c22a12b26e
2 changed files with 9 additions and 1 deletions
|
@ -372,6 +372,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