Various endpoints modify the list of users that are affiliated to a chat room. When users become affiliated to a chatroom, it sometimes is desirable to let them know.
Please add an optional argument to endpoints that change chat room affiliations that triggers an invitation to join the chat room to be sent to newly affiliated users. Note that individual users can be added as an affiliated users, but also groups of users. In the latter case, every user in the group should be sent an invitation.
The invitation format is described in section 7.8.2 'Mediated Invitation' of XEP-0045 'Multi-User Chat'.
At the very least, this functionality should be added to endpoints that create new rooms (when the room creation request includes user affiliations). Do not forget the endpoint that is added via #127.
Time permitting, this could also be applied to endpoints that change the owners/admins/members (but obviously not outcasts) of a room, as well as endpoints that generically update the room. In these cases, only send invitations to newly affiliated users (not to users that were already affiliated).
Various endpoints modify the list of users that are affiliated to a chat room. When users become affiliated to a chatroom, it sometimes is desirable to let them know.
Please add an optional argument to endpoints that change chat room affiliations that triggers an invitation to join the chat room to be sent to newly affiliated users. Note that individual users can be added as an affiliated users, but also groups of users. In the latter case, every user in the group should be sent an invitation.
The invitation format is described in section 7.8.2 'Mediated Invitation' of XEP-0045 'Multi-User Chat'.
At the very least, this functionality should be added to endpoints that create new rooms (when the room creation request includes user affiliations). Do not forget the endpoint that is added via #127.
Time permitting, this could also be applied to endpoints that change the owners/admins/members (but obviously not outcasts) of a room, as well as endpoints that generically update the room. In these cases, only send invitations to newly affiliated users (not to users that were already affiliated).