From 2dc9ded0e82ded92a0a09d23117cb7d345a977fe Mon Sep 17 00:00:00 2001 From: Hampus Date: Sat, 15 Aug 2026 20:18:05 +0200 Subject: [PATCH] fix(app): stop muted channels from marking the guild unread (#1644) --- fluxer_app/src/features/guild/state/GuildReadState.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fluxer_app/src/features/guild/state/GuildReadState.ts b/fluxer_app/src/features/guild/state/GuildReadState.ts index 7cb3c90f5..c6ac25a72 100644 --- a/fluxer_app/src/features/guild/state/GuildReadState.ts +++ b/fluxer_app/src/features/guild/state/GuildReadState.ts @@ -12,6 +12,7 @@ import AdvancedSettings from '@app/features/user/state/AdvancedSettings'; import UserGuildSettings from '@app/features/user/state/UserGuildSettings'; import {ME} from '@fluxer/constants/src/AppConstants'; import {GUILD_TEXT_BASED_CHANNEL_TYPES} from '@fluxer/constants/src/ChannelConstants'; +import {MessageNotifications} from '@fluxer/constants/src/NotificationConstants'; import type {ChannelId, GuildId} from '@fluxer/schema/src/branded/WireIds'; import {makeAutoObservable, observable, reaction, runInAction} from 'mobx'; @@ -52,6 +53,7 @@ function isChannelMutedForUnread(channel: ContributeChannel): boolean { function resolveUnreadBadgesLevel(channel: ContributeChannel): number | null { if (channel.isPrivate()) return null; + if (isChannelMutedForUnread(channel)) return MessageNotifications.NO_MESSAGES; return UserGuildSettings.resolvedGuildUnreadBadgesLevel({ id: channel.id, guildId: channel.guildId ?? undefined,