From ba24e13419bfa6efd08a0d07f049a6981ff4cd28 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 24 Jun 2023 16:57:41 -0400 Subject: dont notify on silent 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 3c88c44..e95c1c0 100644 --- a/src/notifications/notifications.cpp +++ b/src/notifications/notifications.cpp @@ -88,6 +88,8 @@ bool CheckGuildMessage(const Message &message) { void Notifications::CheckMessage(const Message &message) { if (!Abaddon::Get().GetSettings().NotificationsEnabled) return; + // ignore if silent message + if (message.Flags.has_value() && ((*message.Flags & MessageFlags::SUPPRESS_NOTIFICATIONS) == MessageFlags::SUPPRESS_NOTIFICATIONS)) return; // ignore if our status is do not disturb if (IsDND()) return; auto &discord = Abaddon::Get().GetDiscordClient(); -- cgit v1.2.3