diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index 1318fbb..27f6aca 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -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':