mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Use nickname to jid mapping when sending room invites
This commit is contained in:
parent
dcd8dcda87
commit
d02e6a82fa
@ -2403,8 +2403,12 @@ _cmd_invite(gchar **args, struct cmd_help_t help)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *usr_jid = roster_barejid_from_name(contact);
|
||||||
|
if (usr_jid == NULL) {
|
||||||
|
usr_jid = contact;
|
||||||
|
}
|
||||||
room = ui_current_recipient();
|
room = ui_current_recipient();
|
||||||
message_send_invite(room, contact, reason);
|
message_send_invite(room, usr_jid, reason);
|
||||||
if (reason != NULL) {
|
if (reason != NULL) {
|
||||||
cons_show("Room invite sent, contact: %s, room: %s, reason: \"%s\".",
|
cons_show("Room invite sent, contact: %s, room: %s, reason: \"%s\".",
|
||||||
contact, room, reason);
|
contact, room, reason);
|
||||||
|
Loading…
Reference in New Issue
Block a user