Notify level actual take actions

This commit is contained in:
LittleSheep 2025-06-10 00:03:13 +08:00
parent 9e17be38d8
commit 922bf110ac

View File

@ -121,6 +121,14 @@ public class ChatService(
}); });
if (member.Account.Id == sender.AccountId) continue; 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); accountsToNotify.Add(member.Account);
} }