diff options
author | Paul Fariello <paul@fariello.eu> | 2019-04-10 19:03:12 +0320 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-04-10 17:24:56 +0200 |
commit | f75e1d7a7b05c68f03b6b13163ac9f2b8824e7df (patch) | |
tree | a52850f2f5fc225759c2287d1672ed22b5ef7f0a /src/command/cmd_funcs.c | |
parent | ad21021ce7905b500d6302964aecb3911c8e2157 (diff) | |
download | profani-tty-f75e1d7a7b05c68f03b6b13163ac9f2b8824e7df.tar.gz |
Support contact name in /omemo fingerprint command
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 13 |
1 files 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; + } } } |