feat: add option to force encryption

This commit is contained in:
link2xt
2026-05-07 07:10:17 +02:00
parent a74ad4c786
commit 15d971f0dc
10 changed files with 63 additions and 10 deletions

View File

@@ -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(())
}
}