Simplified

This commit is contained in:
Codeboss
2023-08-10 01:27:53 +03:00
parent a977d20310
commit fea204ac26

View File

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