Skip to content

Commit cccb6ea

Browse files
committed
Fix group notification with 0 new message
1 parent a389115 commit cccb6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/infomaniak/mail/utils/FetchMessagesManager.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class FetchMessagesManager @Inject constructor(
149149
}
150150

151151
// Notify Threads with new Messages
152-
val unReadThreadsCount = ThreadController.getUnreadThreadsCount(folder)
152+
val unReadThreadsCount = threadsWithNewMessages.count()
153153
threadsWithNewMessages.forEachIndexed { index, thread ->
154154
thread.showThreadNotification(
155155
userId = userId,

0 commit comments

Comments
 (0)