mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
feat: add option to force encryption
This commit is contained in:
@@ -1231,9 +1231,8 @@ ORDER BY id"
|
||||
}
|
||||
|
||||
/// Allow reception of unencrypted messages.
|
||||
#[expect(clippy::unused_async)]
|
||||
pub async fn allow_unencrypted(&self) -> Result<()> {
|
||||
// Does nothing for now.
|
||||
self.set_config_bool(Config::ForceEncryption, false).await?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user