Skip to content

Commit e22ec18

Browse files
committed
fix(history): use notifications chat type for deriving balance unread count
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 325074f commit e22ec18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/com/getcode/network/ChatHistoryController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class ChatHistoryController @Inject constructor(
116116
chatFlows[chatId] = it
117117
}
118118

119-
val unreadCount = chats
119+
val unreadCount = notifications
120120
.filterNotNull()
121121
// Ignore muted chats and unsubscribed chats
122122
.map { it.filter { c -> !c.isMuted && c.isSubscribed } }

0 commit comments

Comments
 (0)