@@ -2192,7 +2192,7 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args)
|
|||||||
is_otr_secure = otr_is_secure(barejid);
|
is_otr_secure = otr_is_secure(barejid);
|
||||||
#endif // HAVE_LIBOTR
|
#endif // HAVE_LIBOTR
|
||||||
|
|
||||||
|
#ifdef HAVE_OMEMO
|
||||||
if (omemo_automatic_start(barejid) && is_otr_secure) {
|
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);
|
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;
|
return TRUE;
|
||||||
@@ -2200,6 +2200,7 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args)
|
|||||||
omemo_start_session(barejid);
|
omemo_start_session(barejid);
|
||||||
chatwin->is_omemo = TRUE;
|
chatwin->is_omemo = TRUE;
|
||||||
}
|
}
|
||||||
|
#endif // HAVE_OMEMO
|
||||||
|
|
||||||
if (msg) {
|
if (msg) {
|
||||||
cl_ev_send_msg(chatwin, msg, NULL);
|
cl_ev_send_msg(chatwin, msg, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user