From 9f3cbdc873147714cfb7c1b5e472ffbf5f71607d Mon Sep 17 00:00:00 2001 From: iequidoo Date: Tue, 4 Jun 2024 16:59:41 -0300 Subject: [PATCH] fix: Set Config::IsChatmail in configure() `IsChatmail` is set also by `inbox_fetch_idle()`, but it isn't called during `configure()`. Setting `IsChatmail` from `inbox_fetch_idle()` is necessary to handle client/server upgrades, but `IsChatmail` also should be available for the app after configuring an account, e.g. DC Android needs it to know whether to ask the user to disable battery optimisations. --- src/configure.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/configure.rs b/src/configure.rs index d03390d55..dafd0c04c 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -459,6 +459,7 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> { progress!(ctx, 900); if imap_session.is_chatmail() { + ctx.set_config(Config::IsChatmail, Some("1")).await?; ctx.set_config(Config::SentboxWatch, None).await?; ctx.set_config(Config::MvboxMove, Some("0")).await?; ctx.set_config(Config::OnlyFetchMvbox, None).await?;