From 1ef0ab01aaf9bb46e70edea4259b835070f92922 Mon Sep 17 00:00:00 2001 From: Neguin <65922949+NeguinDev@users.noreply.github.com> Date: Sat, 8 Jul 2023 18:07:05 -0300 Subject: [PATCH] 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 --- src/Socket/groups.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socket/groups.ts b/src/Socket/groups.ts index 8a31159d53b..5e6b75db82b 100644 --- a/src/Socket/groups.ts +++ b/src/Socket/groups.ts @@ -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) => {