mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Simplified
This commit is contained in:
@@ -169,7 +169,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
const onWhatsApp = async(...jids: string[]) => {
|
const onWhatsApp = async(...jids: string[]) => {
|
||||||
const query = { tag: 'contact', attrs: {} }
|
const query = { tag: 'contact', attrs: {} }
|
||||||
const list = jids.map((jid) => {
|
const list = jids.map((jid) => {
|
||||||
const content = (!jid.startsWith('+')) ? `+${jid}` : jid;
|
const content = `+${jid.replace('+', '')}`; // insures only 1 + is there
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tag: 'user',
|
tag: 'user',
|
||||||
|
|||||||
Reference in New Issue
Block a user