Add OMEMO end command

This commit is contained in:
Paul Fariello
2019-03-19 17:10:20 +01:00
parent 9a66e74986
commit bc541cb8ac
4 changed files with 46 additions and 0 deletions

View File

@@ -2335,6 +2335,7 @@ static struct cmd_t command_defs[] =
CMD_SUBFUNCS(
{ "gen", cmd_omemo_gen },
{ "start", cmd_omemo_start },
{ "end", cmd_omemo_end },
{ "trust", cmd_omemo_trust },
{ "untrust", cmd_omemo_untrust },
{ "fingerprint", cmd_omemo_fingerprint })
@@ -2346,12 +2347,14 @@ static struct cmd_t command_defs[] =
"/omemo gen",
"/omemo start [<contact>]",
"/omemo trust [<contact>] <fingerprint>",
"/omemo end",
"/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." },
{ "end", "End the current OMEMO session," },
{ "fingerprint", "Show current device fingerprint." })
CMD_EXAMPLES(
"/omemo gen",