mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
catch errors in groupParticipantsUpdate (#1545)
* catch errors in groupParticipantsUpdate * catch errors in groupParticipantsUpdate
This commit is contained in:
committed by
GitHub
parent
767120a555
commit
846abbf7b9
@@ -99,7 +99,9 @@ export const makeGroupsSocket = (config: SocketConfig) => {
|
|||||||
)
|
)
|
||||||
const node = getBinaryNodeChild(result, action)
|
const node = getBinaryNodeChild(result, action)
|
||||||
const participantsAffected = getBinaryNodeChildren(node!, 'participant')
|
const participantsAffected = getBinaryNodeChildren(node!, 'participant')
|
||||||
return participantsAffected.map(p => p.attrs.jid)
|
return participantsAffected.map(p => {
|
||||||
|
return { status: p.attrs.error || 200, jid: p.attrs.jid }
|
||||||
|
})
|
||||||
},
|
},
|
||||||
groupUpdateDescription: async(jid: string, description?: string) => {
|
groupUpdateDescription: async(jid: string, description?: string) => {
|
||||||
const metadata = await groupMetadata(jid)
|
const metadata = await groupMetadata(jid)
|
||||||
|
|||||||
Reference in New Issue
Block a user