fix(threads): light up joined threads in muted communities (#3316)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-08 20:32:33 +02:00
1 parent b146b8ee33
commit fdb7410976
2 files changed
+9 -2

No files matched your search

@@ -24,6 +24,13 @@ export function isThreadParentMuted(thread: Channel): boolean {
return thread.parentId != null && UserGuildSettings.isMutedAtAnyLevel(thread.guildId ?? null, thread.parentId);
}
export function isThreadMutedInSidebar(thread: Channel): boolean {
return (
ThreadMemberships.isMuted(thread.id) ||
(thread.parentId != null && UserGuildSettings.isChannelDirectlyMuted(thread.guildId ?? null, thread.parentId))
);
}
export function isThreadMuted(thread: Channel): boolean {
return ThreadMemberships.isMuted(thread.id) || isThreadParentMuted(thread);
}