From ee3486124d23c5c15b7a429e92dfdb9236ac7aa2 Mon Sep 17 00:00:00 2001 From: nanda <69896924+nugraizy@users.noreply.github.com> Date: Thu, 23 Dec 2021 00:18:40 +0700 Subject: [PATCH] Fix: fetchBlocklist (#1042) --- src/Socket/chats.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 29f852c..8a3622f 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -135,6 +135,7 @@ export const makeChatsSocket = (config: SocketConfig) => { type: 'get' } }) + return result.content[0].content.map(i => i.attrs.jid) } const updateBlockStatus = async(jid: string, action: 'block' | 'unblock') => {