muted dms dont contribute to unread count

This commit is contained in:
ouwou
2022-01-26 18:43:47 -05:00
parent fbb5522861
commit 7d49f934bc

View File

@@ -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;
}