From f75e1d7a7b05c68f03b6b13163ac9f2b8824e7df Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Wed, 10 Apr 2019 19:03:12 +0320 Subject: [PATCH] Support contact name in /omemo fingerprint command --- src/command/cmd_funcs.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 40952c20..fe289f0b 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -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; + } } }