dont notify on own messages

This commit is contained in:
ouwou
2023-03-01 01:18:35 -05:00
parent a09ad5cec0
commit 72a0fb9033

View File

@@ -12,6 +12,8 @@ void Notifications::CheckMessage(const Message &message) {
if (discord.IsChannelMuted(message.ChannelID)) return;
// ignore if focused and message's channel is active
if (Abaddon::Get().IsMainWindowActive() && Abaddon::Get().GetActiveChannelID() == message.ChannelID) return;
// ignore if its our own message
if (message.Author.ID == Abaddon::Get().GetDiscordClient().GetUserData().ID) return;
// notify messages in DMs
const auto channel = discord.GetChannel(message.ChannelID);
if (channel->IsDM()) {