temp: comment out account sync

Not sure if this is correctly implemented
This commit is contained in:
Adhiraj Singh
2021-11-11 15:21:51 +05:30
parent 7b5bb1f428
commit b1eab17409

View File

@@ -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')