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',