mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fixed groupParticipantsUpdate request format (#1763)
This commit is contained in:
@@ -89,13 +89,16 @@ export const makeGroupsSocket = (config: SocketConfig) => {
|
|||||||
const result = await groupQuery(
|
const result = await groupQuery(
|
||||||
jid,
|
jid,
|
||||||
'set',
|
'set',
|
||||||
participants.map(
|
[
|
||||||
jid => ({
|
{
|
||||||
tag: action,
|
tag: action,
|
||||||
attrs: { },
|
attrs: { },
|
||||||
content: [{ tag: 'participant', attrs: { jid } }]
|
content: participants.map(jid => ({
|
||||||
})
|
tag: 'participant',
|
||||||
)
|
attrs: { jid }
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
]
|
||||||
)
|
)
|
||||||
const node = getBinaryNodeChild(result, action)
|
const node = getBinaryNodeChild(result, action)
|
||||||
const participantsAffected = getBinaryNodeChildren(node!, 'participant')
|
const participantsAffected = getBinaryNodeChildren(node!, 'participant')
|
||||||
|
|||||||
Reference in New Issue
Block a user