mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fix brackets in chats.ts
This commit is contained in:
committed by
Codeboss
parent
1d57f38323
commit
a977d20310
@@ -168,7 +168,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.startsWith('+')) ? `+${jid}` : jid;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -180,7 +180,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
content,
|
content,
|
||||||
}],
|
}],
|
||||||
}
|
}
|
||||||
))
|
})
|
||||||
const results = await interactiveQuery(list, query)
|
const results = await interactiveQuery(list, query)
|
||||||
|
|
||||||
return results.map(user => {
|
return results.map(user => {
|
||||||
|
|||||||
Reference in New Issue
Block a user