mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
parent
2f4b1734e9
commit
3afd854dc8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user