Improve syncing of in-memory expirationStartTimestamp
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
parent
481238ad9d
commit
13f9643442
2 changed files with 9 additions and 1 deletions
|
@ -373,6 +373,7 @@ export type GetUnreadByConversationAndMarkReadResultType = Array<
|
||||||
| 'type'
|
| 'type'
|
||||||
| 'readStatus'
|
| 'readStatus'
|
||||||
| 'seenStatus'
|
| 'seenStatus'
|
||||||
|
| 'expirationStartTimestamp'
|
||||||
>
|
>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,14 @@ export async function markConversationRead(
|
||||||
);
|
);
|
||||||
// we update the in-memory MessageModel with fresh read/seen status
|
// we update the in-memory MessageModel with fresh read/seen status
|
||||||
if (message) {
|
if (message) {
|
||||||
message.set(pick(messageSyncData, 'readStatus', 'seenStatus'));
|
message.set(
|
||||||
|
pick(
|
||||||
|
messageSyncData,
|
||||||
|
'readStatus',
|
||||||
|
'seenStatus',
|
||||||
|
'expirationStartTimestamp'
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue