Fixed an issue where draft unique id tracking prevents reply draft to be removed from thread until the list is refreshed.

This commit is contained in:
Burak Kaan Köse
2024-05-21 23:48:44 +02:00
parent 879f91693e
commit 8f2f414f5e

View File

@@ -152,6 +152,11 @@ namespace Wino.Mail.ViewModels.Collections
await ExecuteUIThread(() => { threadMailItemViewModel.NotifyPropertyChanges(); });
if (!MailCopyIdHashSet.Contains(addedItem.UniqueId))
{
MailCopyIdHashSet.Add(addedItem.UniqueId);
}
break;
}
else
@@ -173,6 +178,9 @@ namespace Wino.Mail.ViewModels.Collections
if (item is MailItemViewModel itemViewModel)
{
itemViewModel.Update(addedItem);
MailCopyIdHashSet.Remove(itemViewModel.UniqueId);
MailCopyIdHashSet.Add(addedItem.UniqueId);
}
}
else