From 7d49f934bc1bb87a5b811374433f574733963188 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 26 Jan 2022 18:43:47 -0500 Subject: muted dms dont contribute to unread count --- src/discord/discord.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3