mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-02 09:46:21 +00:00
Support contact name in /omemo fingerprint command
This commit is contained in:
@@ -8168,6 +8168,10 @@ cmd_omemo_fingerprint(ProfWin *window, const char *const command, gchar **args)
|
|||||||
win_println(window, THEME_DEFAULT, '-', "You must be in a regular chat window to print fingerprint without providing the contact.");
|
win_println(window, THEME_DEFAULT, '-', "You must be in a regular chat window to print fingerprint without providing the contact.");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
char *barejid = roster_barejid_from_name(args[1]);
|
||||||
|
if (barejid) {
|
||||||
|
jid = jid_create(barejid);
|
||||||
} else {
|
} else {
|
||||||
jid = jid_create(args[1]);
|
jid = jid_create(args[1]);
|
||||||
if (!jid) {
|
if (!jid) {
|
||||||
@@ -8175,6 +8179,7 @@ cmd_omemo_fingerprint(ProfWin *window, const char *const command, gchar **args)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GList *fingerprints = omemo_known_device_identities(jid->barejid);
|
GList *fingerprints = omemo_known_device_identities(jid->barejid);
|
||||||
GList *fingerprint;
|
GList *fingerprint;
|
||||||
|
|||||||
Reference in New Issue
Block a user