summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/discord/discord.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/discord/discord.cpp b/src/discord/discord.cpp
index 8d1cf12..78f2c35 100644
--- a/src/discord/discord.cpp
+++ b/src/discord/discord.cpp
@@ -1224,7 +1224,7 @@ int DiscordClient::GetUnreadDMsCount() const {
const auto channels = GetPrivateChannels();
int count = 0;
for (const auto channel_id : channels)
- if (GetUnreadStateForChannel(channel_id) > -1) count++;
+ if (!IsChannelMuted(channel_id) && GetUnreadStateForChannel(channel_id) > -1) count++;
return count;
}