Skip to content

Commit

Permalink
feat: Display the number of threads in snooze instead of its unread c…
Browse files Browse the repository at this point in the history
…ount
  • Loading branch information
LunarX authored and KevinBoulongne committed Mar 7, 2025
1 parent 13ac8bd commit bc18748
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit bc18748

Please sign in to comment.