Fix the issue where sent and draft items are added to the existing folder regardless.

This commit is contained in:
Burak Kaan Köse
2025-10-31 11:26:51 +01:00
parent 282655dca8
commit 9e74fa9578
2 changed files with 35 additions and 7 deletions
@@ -188,6 +188,16 @@ public class WinoMailCollection : ObservableRecipient, IRecipient<SelectedItemsC
return _threadIdToItemsMap[threadId].FirstOrDefault();
}
/// <summary>
/// Checks if a ThreadId exists in the collection.
/// </summary>
/// <param name="threadId">The ThreadId to check for.</param>
/// <returns>True if the ThreadId exists in the collection, false otherwise.</returns>
public bool ContainsThreadId(string threadId)
{
return !string.IsNullOrEmpty(threadId) && _threadIdToItemsMap.ContainsKey(threadId);
}
private async Task InsertItemInternalAsync(object groupKey, IMailListItem mailItem)
{
UpdateUniqueIdHashes(mailItem, true);