summaryrefslogtreecommitdiff
path: root/src/discord
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord')
-rw-r--r--src/discord/discord.cpp3
1 files changed, 3 insertions, 0 deletions
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);