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])
|
await resyncAppState([name])
|
||||||
|
|
||||||
let { [name]: initial } = await authState.keys.get('app-state-sync-version', [name])
|
const { [name]: currentSyncVersion } = await authState.keys.get('app-state-sync-version', [name])
|
||||||
initial = initial || newLTHashState()
|
initial = currentSyncVersion || newLTHashState()
|
||||||
|
|
||||||
encodeResult = await encodeSyncdPatch(
|
encodeResult = await encodeSyncdPatch(
|
||||||
patchCreate,
|
patchCreate,
|
||||||
|
|||||||
Reference in New Issue
Block a user