diff options
author | Paul Fariello <paul@fariello.eu> | 2019-02-19 20:03:50 +0140 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-04-10 15:37:22 +0200 |
commit | 2602cbf7852fa4317d961316b601a383b9077079 (patch) | |
tree | 31a21338b33a2efa61db9a9da67b7f922ac6b22d /src/command/cmd_funcs.c | |
parent | 519cf295f31d77bec45644424f7212e9fb2692e8 (diff) | |
download | profani-tty-2602cbf7852fa4317d961316b601a383b9077079.tar.gz |
Move OMEMO initialization to profanity intialization
Also store identity keys into account
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 97ce2025..08aa88df 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -85,7 +85,7 @@ #include "pgp/gpg.h" #endif -#ifdef HAVE_LIBSIGNAL_PROTOCOL +#ifdef HAVE_OMEMO #include "omemo/omemo.h" #endif @@ -7878,20 +7878,19 @@ _cmd_set_boolean_preference(gchar *arg, const char *const command, } gboolean -cmd_omemo_init(ProfWin *window, const char *const command, gchar **args) +cmd_omemo_gen(ProfWin *window, const char *const command, gchar **args) { -#ifdef HAVE_LIBSIGNAL_PROTOCOL +#ifdef HAVE_OMEMO if (connection_get_status() != JABBER_CONNECTED) { - cons_show("You must be connected with an account to initialize omemo"); + cons_show("You must be connected with an account to initialize OMEMO"); return TRUE; } ProfAccount *account = accounts_get_account(session_get_account_name()); - omemo_init(account); - cons_show("Initialized omemo"); + omemo_generate_crypto_materials(account); return TRUE; #else - cons_show("This version of Profanity has not been built with Omemo support enabled"); + cons_show("This version of Profanity has not been built with OMEMO support enabled"); return TRUE; #endif } |