Fixing UI thread issues with bulk operations and request queue refactoring.

This commit is contained in:
Burak Kaan Köse
2026-04-20 02:18:23 +02:00
parent 3bd0b69429
commit 54148716bb
38 changed files with 1644 additions and 206 deletions
@@ -667,6 +667,23 @@ public partial class MailRenderingPageViewModel : MailBaseViewModel,
await ExecuteUIThread(() => { InitializeCommandBarItems(); });
}
protected override async void OnMailStateUpdated(MailStateChange updatedState, EntityUpdateSource source)
{
base.OnMailStateUpdated(updatedState, source);
if (initializedMailItemViewModel == null || updatedState == null)
return;
if (initializedMailItemViewModel.MailCopy.UniqueId != updatedState.UniqueId)
return;
await ExecuteUIThread(() =>
{
initializedMailItemViewModel.ApplyStateChanges(updatedState.IsRead, updatedState.IsFlagged);
InitializeCommandBarItems();
});
}
protected override async void OnMailRemoved(MailCopy removedMail, EntityUpdateSource source)
{
base.OnMailRemoved(removedMail, source);