Enigma: Enable default signing/encryption on a signed/encrypted draft compose

pull/316/head
Aleksander Machniak 9 years ago
parent 39137fe292
commit f04b56f306

@ -48,6 +48,11 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
});
}
$.each(['encrypt', 'sign'], function() {
if (rcmail.env['enigma_force_' + this])
$('[name="_enigma_' + this + '"]').prop('checked', true);
});
if (rcmail.env.enigma_password_request) {
rcmail.enigma_password_request(rcmail.env.enigma_password_request);
}

@ -999,6 +999,10 @@ class enigma_ui
$this->rc->output->show_message($msg, 'error');
}
// Check sign/ecrypt options for signed/encrypted drafts
$this->rc->output->set_env('enigma_force_encrypt', !empty($engine->decryptions));
$this->rc->output->set_env('enigma_force_sign', !empty($engine->signatures));
return $p;
}
}

Loading…
Cancel
Save