From 47365dd7e057274a046daf2ea991bf1f60288b9d Mon Sep 17 00:00:00 2001 From: Maxim Logaev Date: Tue, 26 Mar 2024 19:29:09 +0300 Subject: [PATCH] Encryption dialog not change default encryption Signed-off-by: Maxim Logaev --- main/src/ui/conversation_view_controller.vala | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/main/src/ui/conversation_view_controller.vala b/main/src/ui/conversation_view_controller.vala index fadd34dd..9ab4e5b8 100644 --- a/main/src/ui/conversation_view_controller.vala +++ b/main/src/ui/conversation_view_controller.vala @@ -171,19 +171,8 @@ public class ConversationViewController : Object { }); selection_dialog.response.connect((response_id) => { - if (response_id == Gtk.ResponseType.DELETE_EVENT) { - conversation.encryption = NONE; - } - else { + if (response_id >= 0) { conversation.encryption = response_id; - - if (selected_default != NONE) { - settings.default_encryption = response_id; - } - else { - // Set conversation as unencrypted, but keep - // default encryption setting as undecided. - } } });