mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
feat: do not unconditionally watch mvbox for non-chatmail
Since commit 25750de4e1
released in 2.36.0 we do not move messages to mvbox without explicit
mvbox_move setting, so do not need to watch it as well
as long as other devices are updated to the same change.
This commit is contained in:
@@ -597,8 +597,7 @@ impl Context {
|
|||||||
/// Returns true if movebox ("DeltaChat" folder) should be watched.
|
/// Returns true if movebox ("DeltaChat" folder) should be watched.
|
||||||
pub(crate) async fn should_watch_mvbox(&self) -> Result<bool> {
|
pub(crate) async fn should_watch_mvbox(&self) -> Result<bool> {
|
||||||
Ok(self.get_config_bool(Config::MvboxMove).await?
|
Ok(self.get_config_bool(Config::MvboxMove).await?
|
||||||
|| self.get_config_bool(Config::OnlyFetchMvbox).await?
|
|| self.get_config_bool(Config::OnlyFetchMvbox).await?)
|
||||||
|| !self.get_config_bool(Config::IsChatmail).await?)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if sync messages should be sent.
|
/// Returns true if sync messages should be sent.
|
||||||
|
|||||||
Reference in New Issue
Block a user