mirror of
https://github.com/profanity-im/profanity.git
synced 2025-07-26 12:14:28 -04:00
Fix omemo otr case
Fix 3afd854dc862696c4842b2ed93efcad44d617910
This commit is contained in:
parent
2c94ee5a88
commit
31ec640d05
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user