From 922bf110accf557236f8531eeca5d40ceb3098bd Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 10 Jun 2025 00:03:13 +0800 Subject: [PATCH] :sparkles: Notify level actual take actions --- DysonNetwork.Sphere/Chat/ChatService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DysonNetwork.Sphere/Chat/ChatService.cs b/DysonNetwork.Sphere/Chat/ChatService.cs index 60743e4..3fa0022 100644 --- a/DysonNetwork.Sphere/Chat/ChatService.cs +++ b/DysonNetwork.Sphere/Chat/ChatService.cs @@ -121,6 +121,14 @@ public class ChatService( }); if (member.Account.Id == sender.AccountId) continue; + if (member.Notify == ChatMemberNotify.None) continue; + if (message.MembersMentioned is null || !message.MembersMentioned.Contains(member.Account.Id)) + { + var now = SystemClock.Instance.GetCurrentInstant(); + if (member.BreakUntil is not null && member.BreakUntil > now) continue; + } + else if (member.Notify == ChatMemberNotify.Mentions) continue; + accountsToNotify.Add(member.Account); }