1
1
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:
Paul Fariello 2019-02-22 19:56:12 +01:40
parent 1ae5d9f1f8
commit d8d7a5348c

View File

@ -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;