Fix draft and junk folder's incorrect unread badge.

This commit is contained in:
Burak Kaan Köse
2024-06-14 00:52:36 +02:00
parent b4e705b347
commit 3fee3b0224

View File

@@ -64,8 +64,7 @@ namespace Wino.Core.Services
}
// Draft and Junk folders are not counted as unread. They must return the item count instead.
if (folder.SpecialFolderType != SpecialFolderType.Draft || folder.SpecialFolderType != SpecialFolderType.Junk)
if (folder.SpecialFolderType != SpecialFolderType.Draft && folder.SpecialFolderType != SpecialFolderType.Junk)
{
query.Where("IsRead", 0);
}