From a438b5ba174d4078f10de8f7eb0fe00de3512955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sun, 29 Sep 2024 13:37:20 +0200 Subject: [PATCH] Fixing regular accounts for mail add check. --- Wino.Mail.ViewModels/MailListPageViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wino.Mail.ViewModels/MailListPageViewModel.cs b/Wino.Mail.ViewModels/MailListPageViewModel.cs index 79d63173..bb50f2fc 100644 --- a/Wino.Mail.ViewModels/MailListPageViewModel.cs +++ b/Wino.Mail.ViewModels/MailListPageViewModel.cs @@ -632,8 +632,8 @@ namespace Wino.Mail.ViewModels { if (ActiveFolder == null) return; - // At least accounts must match. - if (!ActiveFolder.HandlingFolders.Any(a => a.MailAccountId != addedMail.AssignedAccount.Id)) return; + // At least one of the accounts we are listing must match with the account of the added mail. + if (!ActiveFolder.HandlingFolders.Any(a => a.MailAccountId == addedMail.AssignedAccount.Id)) return; // Messages coming to sent or draft folder must be inserted regardless of the filter. bool shouldPreventIgnoringFilter = addedMail.AssignedFolder.SpecialFolderType == SpecialFolderType.Draft ||