fix(app-state) - missing key Blocked state, history sync status & 120s timeout
fix(app-state) - missing key Blocked state, history sync status & 120s timeout
This commit is contained in:
@@ -30,8 +30,21 @@ export type BaileysEventMap = {
|
||||
isLatest?: boolean
|
||||
progress?: number | null
|
||||
syncType?: proto.HistorySync.HistorySyncType | null
|
||||
chunkOrder?: number | null
|
||||
peerDataRequestSessionId?: string | null
|
||||
}
|
||||
/** signals history sync milestones (completion or stall) per sync type */
|
||||
'messaging-history.status': {
|
||||
/** which sync phase this status refers to */
|
||||
syncType: proto.HistorySync.HistorySyncType
|
||||
/** the status of this sync phase */
|
||||
status: 'complete' | 'paused'
|
||||
/**
|
||||
* progress === 100 was received from the server.
|
||||
* when false, completion was inferred via timeout (no more chunks arriving).
|
||||
*/
|
||||
explicit: boolean
|
||||
}
|
||||
/** upsert chats */
|
||||
'chats.upsert': Chat[]
|
||||
/** update the given chats */
|
||||
@@ -176,6 +189,7 @@ export type BufferedEventData = {
|
||||
isLatest: boolean
|
||||
progress?: number | null
|
||||
syncType?: proto.HistorySync.HistorySyncType
|
||||
chunkOrder?: number | null
|
||||
peerDataRequestSessionId?: string
|
||||
}
|
||||
chatUpserts: { [jid: string]: Chat }
|
||||
|
||||
Reference in New Issue
Block a user