fix: summary switch bug

This commit is contained in:
zhayujie
2024-05-14 17:48:18 +08:00
parent 2c6583cc9c
commit b09b46c045

View File

@@ -196,7 +196,7 @@ class LinkAI(Plugin):
if context.kwargs.get("isgroup") and not self.sum_config.get("group_enabled"):
return False
support_type = self.sum_config.get("type") or ["FILE", "SHARING"]
if context.type.name not in support_type:
if context.type.name not in support_type and context.type.name != "TEXT":
return False
return True