mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: typeerror on patch
This commit is contained in:
@@ -492,8 +492,8 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
|
||||
await resyncAppState([name])
|
||||
|
||||
let { [name]: initial } = await authState.keys.get('app-state-sync-version', [name])
|
||||
initial = initial || newLTHashState()
|
||||
const { [name]: currentSyncVersion } = await authState.keys.get('app-state-sync-version', [name])
|
||||
initial = currentSyncVersion || newLTHashState()
|
||||
|
||||
encodeResult = await encodeSyncdPatch(
|
||||
patchCreate,
|
||||
|
||||
Reference in New Issue
Block a user