Move OMEMO initialization to profanity intialization

Also store identity keys into account
This commit is contained in:
Paul Fariello
2019-02-19 20:03:50 +01:40
parent 519cf295f3
commit 2602cbf785
9 changed files with 47 additions and 19 deletions

View File

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