Add OMEMO fingerprint command

This commit is contained in:
Paul Fariello
2019-03-07 19:04:33 +01:40
parent 55407ee15f
commit b3be504e84
6 changed files with 90 additions and 3 deletions

View File

@@ -2334,19 +2334,22 @@ static struct cmd_t command_defs[] =
parse_args, 1, 2, NULL,
CMD_SUBFUNCS(
{ "gen", cmd_omemo_gen },
{ "start", cmd_omemo_start })
{ "start", cmd_omemo_start },
{ "fingerprint", cmd_omemo_fingerprint })
CMD_NOMAINFUNC
CMD_TAGS(
CMD_TAG_CHAT,
CMD_TAG_UI)
CMD_SYN(
"/omemo gen",
"/omemo start [<contact>]")
"/omemo start [<contact>]",
"/omemo fingerprint")
CMD_DESC(
"Omemo commands to manage keys, and perform encryption during chat sessions.")
CMD_ARGS(
{ "gen", "Generate OMEMO crytographic materials for current account." },
{ "start [<contact>]", "Start an OMEMO session with contact, or current recipient if omitted." })
{ "start [<contact>]", "Start an OMEMO session with contact, or current recipient if omitted." },
{ "fingerprint", "Show current device fingerprint." })
CMD_EXAMPLES(
"/omemo gen",
"/omemo start buddy@buddychat.org")