messages sent by user shouldnt count as new unreads

This commit is contained in:
ouwou 2021-12-28 02:21:46 -05:00
parent 207c004228
commit 801894abc6

View File

@ -1544,7 +1544,8 @@ void DiscordClient::HandleGatewayMessageCreate(const GatewayMessage &msg) {
if (data.GuildID.has_value())
AddUserToGuild(data.Author.ID, *data.GuildID);
m_last_message_id[data.ChannelID] = data.ID;
m_unread[data.ChannelID];
if (data.Author.ID != GetUserData().ID)
m_unread[data.ChannelID];
if (data.DoesMention(GetUserData().ID)) {
m_unread[data.ChannelID]++;
}