From b1eab17409b36c9513de1902ee8ad2f5b197ecbb Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Thu, 11 Nov 2021 15:21:51 +0530 Subject: [PATCH] temp: comment out account sync Not sure if this is correctly implemented --- 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 a8324c2..f1ee63f 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -417,7 +417,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) { @@ -428,7 +428,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')