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 query = { tag: 'contact', attrs: {} }
|
||||
const list = jids.map((jid) => (
|
||||
const list = jids.map((jid) => {
|
||||
const content = (!jid.startsWith('+')) ? `+${jid}` : jid;
|
||||
|
||||
return {
|
||||
@@ -180,7 +180,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
content,
|
||||
}],
|
||||
}
|
||||
))
|
||||
})
|
||||
const results = await interactiveQuery(list, query)
|
||||
|
||||
return results.map(user => {
|
||||
|
||||
Reference in New Issue
Block a user