mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 03:46:21 +00:00
Support contact name in /omemo fingerprint command
This commit is contained in:
@@ -8169,10 +8169,15 @@ cmd_omemo_fingerprint(ProfWin *window, const char *const command, gchar **args)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
jid = jid_create(args[1]);
|
char *barejid = roster_barejid_from_name(args[1]);
|
||||||
if (!jid) {
|
if (barejid) {
|
||||||
cons_show("%s is not a valid jid", args[1]);
|
jid = jid_create(barejid);
|
||||||
return TRUE;
|
} else {
|
||||||
|
jid = jid_create(args[1]);
|
||||||
|
if (!jid) {
|
||||||
|
cons_show("%s is not a valid jid", args[1]);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user