From cbffb2941cd7e61142a25ef9e58149230621db36 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Mon, 18 Dec 2023 16:43:28 +0200 Subject: [PATCH] fix: Fix linting --- src/Socket/groups.ts | 2 +- src/Socket/messages-recv.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Socket/groups.ts b/src/Socket/groups.ts index cfc11a9..f1613c1 100644 --- a/src/Socket/groups.ts +++ b/src/Socket/groups.ts @@ -318,7 +318,7 @@ export const extractGroupMetadata = (result: BinaryNode) => { const groupId = group.attrs.id.includes('@') ? group.attrs.id : jidEncode(group.attrs.id, 'g.us') const eph = getBinaryNodeChild(group, 'ephemeral')?.attrs.expiration - const memberAddMode = getBinaryNodeChildString(group, 'member_add_mode') == "all_member_add" + const memberAddMode = getBinaryNodeChildString(group, 'member_add_mode') === 'all_member_add' const metadata: GroupMetadata = { id: groupId, subject: group.attrs.subject, diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index 5ed6a7a..ab8b87c 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -392,16 +392,16 @@ 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' + const blocklist = [attrs.jid] + const type = (attrs.action === 'block') ? 'add' : 'remove' - ev.emit('blocklist.update', { blocklist, type }) + ev.emit('blocklist.update', { blocklist, type }) } - } + } break case 'link_code_companion_reg':