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(); });
|
await ExecuteUIThread(() => { threadMailItemViewModel.NotifyPropertyChanges(); });
|
||||||
|
|
||||||
|
if (!MailCopyIdHashSet.Contains(addedItem.UniqueId))
|
||||||
|
{
|
||||||
|
MailCopyIdHashSet.Add(addedItem.UniqueId);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -173,6 +178,9 @@ namespace Wino.Mail.ViewModels.Collections
|
|||||||
if (item is MailItemViewModel itemViewModel)
|
if (item is MailItemViewModel itemViewModel)
|
||||||
{
|
{
|
||||||
itemViewModel.Update(addedItem);
|
itemViewModel.Update(addedItem);
|
||||||
|
|
||||||
|
MailCopyIdHashSet.Remove(itemViewModel.UniqueId);
|
||||||
|
MailCopyIdHashSet.Add(addedItem.UniqueId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user