From 67062d6ed820e9774bb99d1bbc75c8757d65ee70 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 18 Dec 2021 03:24:44 -0500 Subject: unread indicator for dm channels --- src/discord/discord.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/discord/discord.cpp') diff --git a/src/discord/discord.cpp b/src/discord/discord.cpp index 1872985..94099f6 100644 --- a/src/discord/discord.cpp +++ b/src/discord/discord.cpp @@ -2240,6 +2240,9 @@ void DiscordClient::HandleReadyReadState(const ReadyEventData &data) { for (const auto &channel : *guild.Channels) if (channel.Type == ChannelType::GUILD_TEXT || channel.Type == ChannelType::GUILD_NEWS && channel.LastMessageID.has_value()) m_last_message_id[channel.ID] = *channel.LastMessageID; + for (const auto &channel : data.PrivateChannels) + if (channel.LastMessageID.has_value()) + m_last_message_id[channel.ID] = *channel.LastMessageID; for (const auto &entry : data.ReadState.Entries) { const auto it = m_last_message_id.find(entry.ID); -- cgit v1.2.3