about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-06-29 19:13:56 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-06-29 19:13:56 +0200
commit31ec640d051b58b13868340741957e4066274b21 (patch)
tree0eec4f4be56a429bc90cacfb1328899981ef9441
parent2c94ee5a88f64332a3f41f41a4d314fc52200e31 (diff)
downloadprofani-tty-31ec640d051b58b13868340741957e4066274b21.tar.gz
Fix omemo otr case
Fix 3afd854dc862696c4842b2ed93efcad44d617910
-rw-r--r--src/command/cmd_funcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 7d779e87..bd4dc95f 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -2187,12 +2187,13 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args)
         }
         ui_focus_win((ProfWin*)chatwin);
 
+#ifdef HAVE_OMEMO
         gboolean is_otr_secure = FALSE;
+
 #ifdef HAVE_LIBOTR
         is_otr_secure = otr_is_secure(barejid);
 #endif // HAVE_LIBOTR
 
-#ifdef HAVE_OMEMO
         if (omemo_automatic_start(barejid) && is_otr_secure) {
             win_println(window, THEME_DEFAULT, "!", "Chat could be either OMEMO or OTR encrypted. Use '/omemo start %s' or '/otr start %s' to start a session.", usr, usr);
             return TRUE;