feat: add option to force encryption

This commit is contained in:
link2xt
2026-05-07 07:10:17 +02:00
committed by l
parent 32e4a74050
commit d0696504d1
15 changed files with 179 additions and 23 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(())
}
}