feat: Sync Config::MvboxMove across devices (#5680)

NB: We don't restart IO from the synchronisation code, so `MvboxMove` isn't effective immediately if
`ConfiguredMvboxFolder` is unset, but only after a reconnect to IMAP.
This commit is contained in:
iequidoo
2024-06-19 22:40:15 -03:00
committed by iequidoo
parent b5e2ded47a
commit be0ebc7847
2 changed files with 11 additions and 14 deletions

View File

@@ -1346,7 +1346,7 @@ impl Context {
Ok(sentbox.as_deref() == Some(folder_name))
}
/// Returns true if given folder name is the name of the "Delta Chat" folder.
/// Returns true if given folder name is the name of the "DeltaChat" folder.
pub async fn is_mvbox(&self, folder_name: &str) -> Result<bool> {
let mvbox = self.get_config(Config::ConfiguredMvboxFolder).await?;
Ok(mvbox.as_deref() == Some(folder_name))