diff --git a/server/im_security_policy_runtime.go b/server/im_security_policy_runtime.go index abded7e..88dbf9e 100644 --- a/server/im_security_policy_runtime.go +++ b/server/im_security_policy_runtime.go @@ -206,7 +206,8 @@ func imFriendEntryBlocked(policy map[string]any, entry string) bool { } func imMessageCurfewDecision(tenantID types.TenantID, tenantCode string, actor types.Uid, topic string, cat types.TopicCat) imPolicyDecision { - if cat != types.TopicCatP2P { + // 宵禁只作用于私聊与群聊两类消息话题;me/fnd 等非消息话题直接放行。 + if cat != types.TopicCatP2P && cat != types.TopicCatGrp { return imAllowDecision() } policy, err := imSecurityPolicy(tenantID, tenantCode)