fix: typeerror on patch

This commit is contained in:
Adhiraj Singh
2022-06-08 22:56:09 +05:30
parent 5305730d82
commit cea9e9da8a

View File

@@ -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,