Include phone number of inviting XMPP user (if user has one) in MUC invitations to SMS numbers #73
Description
When people on the `SMS side' of the transport receive MUC invitations from XMPP users, it would be help with recognition and legitimization if the inviter's phone number was included in the the message and not just the initiating JID, when such a phone number is available (e.g. in the case of jmp.chat subscribers inviting contacts on the other side of the bridge into a MUC).
It might even make sense to just include the phone number instead of the JID (if these people were really familiar with JIDs, they'd probably have a JID of their own and be receiving the invitation natively instead of via SMS), which would end up giving "... invited you to join a group chat" messages similar to the ones that currently issue when "/invite ..." commands come in from SMS sources.
So, something like:
jid (+phone_num) has invited you to join a group chat
... or:
+phone_num has invited you to join a group chat
Or, if #72 is also implemented, something like:
vcard name (+phone_num) <jid> has invited you to join a group chat
... or even:
vcard name (+phone_num) has invited you to join a group chat
The system already seems to basically DTRT in the case of SMS numbers inviting each other through cheogram, but when an XMPP JID issues an invitation currently only the JID is shown even if there is a phone number that can be looked up for that JID.
I believe that anyone would I'm inviting to an SMS-bridge interface to a MUC can more readily make sense out of the situation if it really does look like it's just an SMS chatroom'; if the invitation doesn't show the name and phone number that they already know, there's a much more complicated out-of-band conversation likely to be required to explain what is going on and
that invitation came from me'.
At the very least, if the invitation includes `conventional contact info' for the inviter, then the recipient of the SMS invitation will immediately know how to reach out to the inviter to clear out whatever remaining confusion they might have.