mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
refactor: app state handling
1. fixes snapshot patches not being included 2. fixes all mutations being passed when syncing from scratch 3. simpler chat mutation model 4. do not retry if key is not found
This commit is contained in:
@@ -10,7 +10,10 @@ export interface PresenceData {
|
||||
lastSeen?: number
|
||||
}
|
||||
|
||||
export type ChatMutation = { syncAction: proto.ISyncActionData, index: string[], indexMac: Uint8Array, valueMac: Uint8Array, operation: number }
|
||||
export type ChatMutation = {
|
||||
syncAction: proto.ISyncActionData
|
||||
index: string[]
|
||||
}
|
||||
|
||||
export type AppStateChunk = { totalMutations : ChatMutation[], collectionsToHandle: WAPatchName[] }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user