mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Ensure OMEMO isn't started before starting OTR
This commit is contained in:
parent
1ae5d9f1f8
commit
d8d7a5348c
@ -7308,6 +7308,11 @@ cmd_otr_start(ProfWin *window, const char *const command, gchar **args)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (chatwin->is_omemo) {
|
||||
win_println(window, THEME_DEFAULT, '!', "You must disable OMEMO before starting an OTR session.");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (chatwin->is_otr) {
|
||||
win_println(window, THEME_DEFAULT, '!', "You are already in an OTR session.");
|
||||
return TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user