Fix draft and junk folder's incorrect unread badge.
This commit is contained in:
@@ -64,8 +64,7 @@ namespace Wino.Core.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draft and Junk folders are not counted as unread. They must return the item count instead.
|
// 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);
|
query.Where("IsRead", 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user