Generic 404 handler for synchronizers.

This commit is contained in:
Burak Kaan Köse
2026-02-08 22:20:38 +01:00
parent 1747ed84a8
commit e559a79506
15 changed files with 258 additions and 35 deletions
@@ -780,6 +780,20 @@ public partial class MailListPageViewModel : MailBaseViewModel,
}
}
protected override async void OnFolderDeleted(MailItemFolder folder)
{
base.OnFolderDeleted(folder);
if (ActiveFolder == null) return;
bool isActiveFolder = ActiveFolder.HandlingFolders.Any(a => a.Id == folder.Id);
if (isActiveFolder)
{
await MailCollection.ClearAsync();
}
}
protected override async void OnDraftCreated(MailCopy draftMail, MailAccount account)
{
base.OnDraftCreated(draftMail, account);