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

@@ -230,6 +230,7 @@ export const ChannelItem = observer(
const isVoiceDragActive = draggingChannel?.channelType === ChannelTypes.GUILD_VOICE;
const shouldDimForVoiceDrag = Boolean(isVoiceDragActive && channelIsText && channel.parentId !== null);
const unreadCount = ReadStates.getUnreadCount(channel.id);
const hasUnread = ReadStates.hasUnread(channel.id);
const connectedVoiceGuildId = channelIsVoice ? MediaEngine.guildId : null;
const connectedVoiceChannelId = channelIsVoice ? MediaEngine.channelId : null;
const canManageChannels = Permission.can(Permissions.MANAGE_CHANNELS, channel);
@@ -265,6 +266,7 @@ export const ChannelItem = observer(
type: channel.type,
});
const unreadState = getChannelUnreadState({
hasUnread,
unreadCount,
mentionCount,
isMuted: isChannelDirectlyMuted,