mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
Also don't disallow going back to cleartext
This commit is contained in:
@@ -298,7 +298,8 @@ impl MimeMessage {
|
|||||||
if let Some(peerstate) = &mut decryption_info.peerstate {
|
if let Some(peerstate) = &mut decryption_info.peerstate {
|
||||||
if message_time > peerstate.last_seen_autocrypt
|
if message_time > peerstate.last_seen_autocrypt
|
||||||
&& mail.ctype.mimetype != "multipart/report"
|
&& mail.ctype.mimetype != "multipart/report"
|
||||||
&& decryption_info.dkim_results.allow_keychange
|
// Disallowing keychanges is disabled for now:
|
||||||
|
// && decryption_info.dkim_results.allow_keychange
|
||||||
{
|
{
|
||||||
peerstate.degrade_encryption(message_time);
|
peerstate.degrade_encryption(message_time);
|
||||||
peerstate.save_to_db(&context.sql, false).await?;
|
peerstate.save_to_db(&context.sql, false).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user