This commit is contained in:
Bob
2023-12-23 22:03:45 -03:00
committed by GitHub
parent 4b3d36a051
commit dd2870bfc1

View File

@@ -392,16 +392,15 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
},
}
})
} else if (child.tag === 'blocklist') {
} else if(child.tag === 'blocklist') {
const blocklists = getBinaryNodeChildren(child, 'item')
for(const { attrs } of blocklists) {
const blocklist = [attrs.jid]
const type = (attrs.action === 'block') ? 'add' : 'remove'
ev.emit('blocklist.update', { blocklist, type })
const blocklist = [attrs.jid]
const type = (attrs.action === 'block') ? 'add' : 'remove'
ev.emit('blocklist.update', { blocklist, type })
}
}
}
break
case 'link_code_companion_reg':