iequidoo's review

This commit is contained in:
Hocuri
2026-05-07 10:24:10 +02:00
parent 7d432c7fb4
commit 450b2f4610
3 changed files with 10 additions and 14 deletions

View File

@@ -985,12 +985,9 @@ mod tests {
);
context1.set_config_bool(Config::IsChatmail, true).await?;
assert_eq!(context1.get_config(Config::IsMuted).await?, None);
assert_eq!(context1.get_config_bool(Config::IsMuted).await?, false);
context1.set_config_bool(Config::IsMuted, true).await?;
assert_eq!(
context1.get_config(Config::IsMuted).await?,
Some("1".to_string())
);
assert_eq!(context1.get_config_bool(Config::IsMuted).await?, true);
imex(context1, ImexMode::ExportBackup, backup_dir.path(), None).await?;
let _event = context1
@@ -1009,14 +1006,8 @@ mod tests {
assert!(context2.is_chatmail().await?);
for ctx in [context1, context2] {
// BccSelf should be enabled automatically when exporting a backup
assert_eq!(
ctx.get_config(Config::BccSelf).await?,
Some("1".to_string())
);
assert_eq!(
ctx.get_config(Config::IsMuted).await?,
Some("1".to_string())
);
assert_eq!(ctx.get_config_bool(Config::BccSelf).await?, true);
assert_eq!(ctx.get_config_bool(Config::IsMuted).await?, true);
}
Ok(())
}