JM is currently sending room invitations when a user becomes a member. We can make this feature optional so that it would be possible to add members to the room and not send any invitation.
Make sure that we are only sending invitations if:
. room is members-only
. user is not currently affiliated with the room
From the spec (notice the SHOULD and not the MUST):
"In addition, the service SHOULD send an invitation to any user who has been added to the member list of a members-only room if the user is not currently affiliated with the room, for example as an admin or owner (such a user would by definition not be in the room; note also that this example includes a password but not a reason – both child elements are OPTIONAL):"
Well, it sends an Invite. But this invite lacks From address and some invite text in it. I was able to get that invite with Exodus, but not with Spark.
I'm keen on doing something about this one.
How about we add a system property to prevent room invites from being sent automatically? I'd be happy to code it up, any thoughts on what the property should be named?
I talked to Guus and he suggested, "xmpp.muc.skipInvite" , I'm gonna code that up now.