From 8bac4852d239eec7577ff51b67c214ff5d4227aa Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Tue, 4 Mar 2025 16:29:00 +0100 Subject: [PATCH] feat: Display the number of threads in snooze instead of its unread count --- .../mail/ui/main/menuDrawer/items/FolderViewHolder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/infomaniak/mail/ui/main/menuDrawer/items/FolderViewHolder.kt b/app/src/main/java/com/infomaniak/mail/ui/main/menuDrawer/items/FolderViewHolder.kt index 6d0431438e..1a5ec6ea62 100644 --- a/app/src/main/java/com/infomaniak/mail/ui/main/menuDrawer/items/FolderViewHolder.kt +++ b/app/src/main/java/com/infomaniak/mail/ui/main/menuDrawer/items/FolderViewHolder.kt @@ -1,6 +1,6 @@ /* * Infomaniak Mail - Android - * Copyright (C) 2024 Infomaniak Network SA + * Copyright (C) 2024-2025 Infomaniak Network SA * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -66,7 +66,7 @@ class FolderViewHolder( } val unread = when (folder.role) { - FolderRole.DRAFT, FolderRole.SCHEDULED_DRAFTS -> UnreadDisplay(count = folder.threads.count()) + FolderRole.DRAFT, FolderRole.SCHEDULED_DRAFTS, FolderRole.SNOOZED -> UnreadDisplay(count = folder.threads.count()) FolderRole.SENT, FolderRole.TRASH -> UnreadDisplay(count = 0) else -> folder.unreadCountDisplay }