From 6c8da526a097c8c732754482ce42c9b9149770be Mon Sep 17 00:00:00 2001 From: Hocuri Date: Sat, 13 Nov 2021 19:20:01 +0100 Subject: [PATCH] Fix: Only show the "Cannot login" device message if it's actually authentication that failed (#2804) Generally we could also just remove the device message as we have the connectivity view, OTOH if you are not using DC a lot, it may be useful to be notified without opening DC. And apart from this one bug it's working fine. --- src/imap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imap.rs b/src/imap.rs index c76575126..79343e28e 100644 --- a/src/imap.rs +++ b/src/imap.rs @@ -361,6 +361,7 @@ impl Imap { let lock = context.wrong_pw_warning_mutex.lock().await; if self.login_failed_once + && err.to_string().to_lowercase().contains("authentication") && context.get_config_bool(Config::NotifyAboutWrongPw).await? { if let Err(e) = context.set_config(Config::NotifyAboutWrongPw, None).await {