fix: added invite property (#218)

If the user does not allow to be added directly, it will be possible to get the invite code and create an invitation message for the user to join the group
This commit is contained in:
Neguin
2023-07-08 18:07:05 -03:00
committed by GitHub
parent a683cbe633
commit 1ef0ab01aa

View File

@@ -193,7 +193,7 @@ export const makeGroupsSocket = (config: SocketConfig) => {
const node = getBinaryNodeChild(result, action)
const participantsAffected = getBinaryNodeChildren(node!, 'participant')
return participantsAffected.map(p => {
return { status: p.attrs.error || '200', jid: p.attrs.jid }
return { status: p.attrs.error || '200', jid: p.attrs.jid, content: p }
})
},
groupUpdateDescription: async(jid: string, description?: string) => {