temp: do not handle dirty account_sync

This commit is contained in:
Adhiraj Singh
2022-04-12 16:31:39 +05:30
parent cf37910297
commit 772acd0946

View File

@@ -623,7 +623,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) {
@@ -643,7 +643,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')