mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 23:46:31 +03:00
fix: do not send sync messages if bcc_self is disabled
This commit is contained in:
@@ -493,6 +493,14 @@ impl Context {
|
||||
.is_some())
|
||||
}
|
||||
|
||||
/// Returns true if sync messages should be sent.
|
||||
///
|
||||
/// This requires that both `SyncMsgs` and `BccSelf` settings are enabled.
|
||||
pub(crate) async fn should_send_sync_msgs(&self) -> Result<bool> {
|
||||
Ok(self.get_config_bool(Config::SyncMsgs).await?
|
||||
&& self.get_config_bool(Config::BccSelf).await?)
|
||||
}
|
||||
|
||||
/// Gets configured "delete_server_after" value.
|
||||
///
|
||||
/// `None` means never delete the message, `Some(0)` means delete
|
||||
|
||||
Reference in New Issue
Block a user