Added filter to do not update UI when unread folder changed.
This commit is contained in:
@@ -394,6 +394,8 @@ namespace Wino.Core.Services
|
|||||||
|
|
||||||
await Connection.DeleteAsync(mailCopy).ConfigureAwait(false);
|
await Connection.DeleteAsync(mailCopy).ConfigureAwait(false);
|
||||||
|
|
||||||
|
// Update UI except unread folder to prevent automatic navigation to the next mail.
|
||||||
|
if (mailCopy.AssignedFolder.SpecialFolderType != SpecialFolderType.Unread)
|
||||||
ReportUIChange(new MailRemovedMessage(mailCopy));
|
ReportUIChange(new MailRemovedMessage(mailCopy));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user