fix: correctly set latest message in chat + lastMsgRecvTimestamp

This commit is contained in:
Adhiraj Singh
2022-09-11 11:06:38 +05:30
parent f11c8c401f
commit c20865dff1
2 changed files with 19 additions and 4 deletions

View File

@@ -74,7 +74,12 @@ export type ChatModification =
| { delete: true, lastMessages: LastMessageList }
export type InitialReceivedChatsState = {
[jid: string]: { lastMsgRecvTimestamp: number }
[jid: string]: {
/** the last message received from the other party */
lastMsgRecvTimestamp?: number
/** the absolute last message in the chat */
lastMsgTimestamp: number
}
}
export type InitialAppStateSyncOptions = {