1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Support contact name in /omemo fingerprint command

This commit is contained in:
Paul Fariello 2019-04-10 19:03:12 +03:20
parent ad21021ce7
commit f75e1d7a7b

View File

@ -8169,10 +8169,15 @@ cmd_omemo_fingerprint(ProfWin *window, const char *const command, gchar **args)
return TRUE;
}
} else {
jid = jid_create(args[1]);
if (!jid) {
cons_show("%s is not a valid jid", args[1]);
return TRUE;
char *barejid = roster_barejid_from_name(args[1]);
if (barejid) {
jid = jid_create(barejid);
} else {
jid = jid_create(args[1]);
if (!jid) {
cons_show("%s is not a valid jid", args[1]);
return TRUE;
}
}
}