From ae474b5e5b802a01df05cbd714975a6f156c0984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sun, 28 Apr 2024 20:38:22 +0200 Subject: [PATCH] Fixed 'Delete' action not deleting the item after it's been marked as read. --- Wino.Mail.ViewModels/MailListPageViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Wino.Mail.ViewModels/MailListPageViewModel.cs b/Wino.Mail.ViewModels/MailListPageViewModel.cs index fe466afe..6e9d4ae0 100644 --- a/Wino.Mail.ViewModels/MailListPageViewModel.cs +++ b/Wino.Mail.ViewModels/MailListPageViewModel.cs @@ -606,6 +606,11 @@ namespace Wino.Mail.ViewModels await ExecuteUIThread(() => { NotifyItemFoundState(); }); } + else if (isDeletedByGmailUnreadFolderAction) + { + // Remove the entry from the set so we can listen to actual deletes next time. + gmailUnreadFolderMarkedAsReadUniqueIds.Remove(removedMail.UniqueId); + } } protected override async void OnDraftCreated(MailCopy draftMail, MailAccount account) {