fix(app): separate unread state from unread counts

This commit is contained in:
Hampus authored and GitHub committed 2026-08-27 02:35:56 +02:00
1 parent d3976e33f8
commit cb4c847d41
16 files changed
+175 -23

No files matched your search

@@ -3,6 +3,7 @@
import {resolveChannelUnreadState} from './ChannelUnreadStateMachine';
export interface ChannelUnreadStateInput {
hasUnread: boolean;
unreadCount: number;
mentionCount: number;
isMuted: boolean;
@@ -20,6 +21,7 @@ export interface ChannelUnreadState {
}
export function getChannelUnreadState({
hasUnread,
unreadCount,
mentionCount,
isMuted,
@@ -27,6 +29,7 @@ export function getChannelUnreadState({
unreadBadgesLevel,
}: ChannelUnreadStateInput): ChannelUnreadState {
return resolveChannelUnreadState({
hasUnread,
unreadCount,
mentionCount,
isMuted,