mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: correctly set latest message in chat + lastMsgRecvTimestamp
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user