Revert "temp: do not handle dirty account_sync"

This reverts commit 772acd0946.
This commit is contained in:
Adhiraj Singh
2022-04-24 09:48:51 +05:30
parent 40abd71d2e
commit 56139b2d03

View File

@@ -617,7 +617,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
ws.on('CB:presence', handlePresenceUpdate) ws.on('CB:presence', handlePresenceUpdate)
ws.on('CB:chatstate', 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 { attrs } = getBinaryNodeChild(node, 'dirty')
const type = attrs.type const type = attrs.type
switch (type) { switch (type) {
@@ -637,7 +637,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
logger.info({ node }, 'received unknown sync') logger.info({ node }, 'received unknown sync')
break break
} }
})*/ })
ws.on('CB:notification,type:server_sync', (node: BinaryNode) => { ws.on('CB:notification,type:server_sync', (node: BinaryNode) => {
const update = getBinaryNodeChild(node, 'collection') const update = getBinaryNodeChild(node, 'collection')