Encryption dialog not change default encryption
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
This commit is contained in:
parent
8e2a459eae
commit
47365dd7e0
|
@ -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.
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue