fix 消息定向发送时不检查消息类型匹配

This commit is contained in:
jxxghp
2025-06-16 08:06:47 +08:00
parent bf23fe6ce2
commit 0fa49bb9c6
+2 -2
View File
@@ -210,8 +210,8 @@ class _MessageBase(ServiceBase[TService, NotificationConf]):
# 检查消息来源 # 检查消息来源
if message.source and message.source != source: if message.source and message.source != source:
return False return False
# 检查消息类型开关 # 不是定向发送时,检查消息类型开关
if message.mtype: if not message.userid and message.mtype:
conf = self.get_config(source) conf = self.get_config(source)
if conf: if conf:
switchs = conf.switchs or [] switchs = conf.switchs or []