From 88da9e17b86ae0315ff4c08bb22e7c78f6a19000 Mon Sep 17 00:00:00 2001 From: Jerzy Kozera <120114+jkozera@users.noreply.github.com> Date: Wed, 5 Jul 2023 01:25:22 +0200 Subject: Don't count muted channels towards unread state of category --- src/discord/discord.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/discord') diff --git a/src/discord/discord.cpp b/src/discord/discord.cpp index 1f54c7e..7b05b2d 100644 --- a/src/discord/discord.cpp +++ b/src/discord/discord.cpp @@ -1320,6 +1320,7 @@ int DiscordClient::GetUnreadStateForChannel(Snowflake id) const noexcept { int DiscordClient::GetUnreadChannelsCountForCategory(Snowflake id) const noexcept { int result = 0; for (Snowflake channel_id : m_store.GetChannelIDsWithParentID(id)) { + if (IsChannelMuted(channel_id)) continue; const auto iter = m_unread.find(channel_id); if (iter == m_unread.end()) continue; result += 1; -- cgit v1.2.3