From 118e9bf50b3aeb19bd84165c6c2a4cbc91c55d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Fri, 27 Sep 2024 00:13:36 +0200 Subject: [PATCH] Fixing invalid logic when the e-mail recieved. --- Wino.Mail.ViewModels/MailListPageViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wino.Mail.ViewModels/MailListPageViewModel.cs b/Wino.Mail.ViewModels/MailListPageViewModel.cs index 47dedbd2..1d925b37 100644 --- a/Wino.Mail.ViewModels/MailListPageViewModel.cs +++ b/Wino.Mail.ViewModels/MailListPageViewModel.cs @@ -636,7 +636,7 @@ namespace Wino.Mail.ViewModels if (ActiveFolder == null) return; // At least accounts must match. - if (ActiveFolder.HandlingFolders.Any(a => a.MailAccountId != addedMail.AssignedAccount.Id)) return; + 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 ||