From fea204ac265ac4c74016b7fe16fd7cc4f4dcf7d6 Mon Sep 17 00:00:00 2001 From: Codeboss <131376628+codebossdev@users.noreply.github.com> Date: Thu, 10 Aug 2023 01:27:53 +0300 Subject: [PATCH] Simplified --- src/Socket/chats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index dd8f044..ce6cf64 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -169,7 +169,7 @@ export const makeChatsSocket = (config: SocketConfig) => { const onWhatsApp = async(...jids: string[]) => { const query = { tag: 'contact', attrs: {} } const list = jids.map((jid) => { - const content = (!jid.startsWith('+')) ? `+${jid}` : jid; + const content = `+${jid.replace('+', '')}`; // insures only 1 + is there return { tag: 'user',