diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 6213ba88..735e197b 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -2192,7 +2192,7 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args) 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; @@ -2200,6 +2200,7 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args) omemo_start_session(barejid); chatwin->is_omemo = TRUE; } +#endif // HAVE_OMEMO if (msg) { cl_ev_send_msg(chatwin, msg, NULL);