diff options
author | Jerzy Kozera <120114+jkozera@users.noreply.github.com> | 2023-07-05 01:25:22 +0200 |
---|---|---|
committer | Jerzy Kozera <120114+jkozera@users.noreply.github.com> | 2023-07-05 01:25:22 +0200 |
commit | 88da9e17b86ae0315ff4c08bb22e7c78f6a19000 (patch) | |
tree | 3c5c0c931dd6ab2f6ca85ce4c6ade22d08fc823e /src/discord | |
parent | bdad178c5d6c5d4cdd9cc80fadb7f75e2bc6aa80 (diff) | |
download | abaddon-portaudio-88da9e17b86ae0315ff4c08bb22e7c78f6a19000.tar.gz abaddon-portaudio-88da9e17b86ae0315ff4c08bb22e7c78f6a19000.zip |
Don't count muted channels towards unread state of category
Diffstat (limited to 'src/discord')
-rw-r--r-- | src/discord/discord.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |