mirror of
https://github.com/profanity-im/profanity.git
synced 2025-07-26 12:14:28 -04:00
cmd_funcs: fix omemo case
Small mistake introduced in b7f959bab4e8ed13e8b5d638180420e497844a26.
This commit is contained in:
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);
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user