mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: tsc error
This commit is contained in:
@@ -135,7 +135,8 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
type: 'get'
|
||||
}
|
||||
})
|
||||
return result.content[0].content.map(i => i.attrs.jid)
|
||||
const child = result.content?.[0] as BinaryNode
|
||||
return (child.content as BinaryNode[])?.map(i => i.attrs.jid)
|
||||
}
|
||||
|
||||
const updateBlockStatus = async(jid: string, action: 'block' | 'unblock') => {
|
||||
|
||||
Reference in New Issue
Block a user