Encryption dialog not change default encryption

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
This commit is contained in:
Maxim Logaev 2024-03-26 19:29:09 +03:00
parent 8e2a459eae
commit 47365dd7e0

View file

@ -171,19 +171,8 @@ public class ConversationViewController : Object {
}); });
selection_dialog.response.connect((response_id) => { selection_dialog.response.connect((response_id) => {
if (response_id == Gtk.ResponseType.DELETE_EVENT) { if (response_id >= 0) {
conversation.encryption = NONE;
}
else {
conversation.encryption = response_id; 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.
}
} }
}); });