Added filter to do not update UI when unread folder changed.

This commit is contained in:
Aleh Khantsevich
2024-04-25 00:26:58 +02:00
parent 75863faf58
commit 0322bcd047

View File

@@ -394,7 +394,9 @@ namespace Wino.Core.Services
await Connection.DeleteAsync(mailCopy).ConfigureAwait(false);
ReportUIChange(new MailRemovedMessage(mailCopy));
// Update UI except unread folder to prevent automatic navigation to the next mail.
if (mailCopy.AssignedFolder.SpecialFolderType != SpecialFolderType.Unread)
ReportUIChange(new MailRemovedMessage(mailCopy));
}
#endregion