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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user