From 56139b2d0300cca388aff57459283a1c76f58ee3 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sun, 24 Apr 2022 09:48:51 +0530 Subject: [PATCH] Revert "temp: do not handle dirty account_sync" This reverts commit 772acd0946e70e9993b27112eaa7ff83d9055655. --- src/Socket/chats.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index bcfe7d3..e70169d 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -617,7 +617,7 @@ export const makeChatsSocket = (config: SocketConfig) => { ws.on('CB:presence', handlePresenceUpdate) ws.on('CB:chatstate', handlePresenceUpdate) - /*ws.on('CB:ib,,dirty', async(node: BinaryNode) => { + ws.on('CB:ib,,dirty', async(node: BinaryNode) => { const { attrs } = getBinaryNodeChild(node, 'dirty') const type = attrs.type switch (type) { @@ -637,7 +637,7 @@ export const makeChatsSocket = (config: SocketConfig) => { logger.info({ node }, 'received unknown sync') break } - })*/ + }) ws.on('CB:notification,type:server_sync', (node: BinaryNode) => { const update = getBinaryNodeChild(node, 'collection')