mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
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.
This commit is contained in:
@@ -361,6 +361,7 @@ impl Imap {
|
|||||||
|
|
||||||
let lock = context.wrong_pw_warning_mutex.lock().await;
|
let lock = context.wrong_pw_warning_mutex.lock().await;
|
||||||
if self.login_failed_once
|
if self.login_failed_once
|
||||||
|
&& err.to_string().to_lowercase().contains("authentication")
|
||||||
&& context.get_config_bool(Config::NotifyAboutWrongPw).await?
|
&& context.get_config_bool(Config::NotifyAboutWrongPw).await?
|
||||||
{
|
{
|
||||||
if let Err(e) = context.set_config(Config::NotifyAboutWrongPw, None).await {
|
if let Err(e) = context.set_config(Config::NotifyAboutWrongPw, None).await {
|
||||||
|
|||||||
Reference in New Issue
Block a user