fix: tsc error
This commit is contained in:
+2
-1
@@ -135,7 +135,8 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
type: 'get'
|
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') => {
|
const updateBlockStatus = async(jid: string, action: 'block' | 'unblock') => {
|
||||||
|
|||||||
Reference in New Issue
Block a user