Fixed groupParticipantsUpdate request format (#1763)

This commit is contained in:
Aditya Singh
2022-06-22 10:44:59 +05:30
committed by GitHub
parent 084c39ca73
commit a1082e85ed

View File

@@ -89,13 +89,16 @@ export const makeGroupsSocket = (config: SocketConfig) => {
const result = await groupQuery(
jid,
'set',
participants.map(
jid => ({
[
{
tag: action,
attrs: { },
content: [{ tag: 'participant', attrs: { jid } }]
})
)
content: participants.map(jid => ({
tag: 'participant',
attrs: { jid }
}))
}
]
)
const node = getBinaryNodeChild(result, action)
const participantsAffected = getBinaryNodeChildren(node!, 'participant')