From 72a0fb9033b9ea599933c3c34e003a3cd0b8afc2 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 1 Mar 2023 01:18:35 -0500 Subject: dont notify on own messages --- src/notifications/notifications.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/notifications') diff --git a/src/notifications/notifications.cpp b/src/notifications/notifications.cpp index 351cf32..b1c4c2f 100644 --- a/src/notifications/notifications.cpp +++ b/src/notifications/notifications.cpp @@ -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()) { -- cgit v1.2.3