forked from OpenGamers/abaddon
messages sent by user shouldnt count as new unreads
This commit is contained in:
parent
207c004228
commit
801894abc6
@ -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]++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user