Skip to content

Commit

Permalink
fix: added invite property (#218)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
NeguinDev authored Jul 8, 2023
1 parent a683cbe commit 1ef0ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Socket/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 1ef0ab0

Please sign in to comment.