From b09b46c04586a938fc57da56a88cd488d09c6a1b Mon Sep 17 00:00:00 2001 From: zhayujie Date: Tue, 14 May 2024 17:48:18 +0800 Subject: [PATCH] fix: summary switch bug --- plugins/linkai/linkai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/linkai/linkai.py b/plugins/linkai/linkai.py index 67efdee..69279f9 100644 --- a/plugins/linkai/linkai.py +++ b/plugins/linkai/linkai.py @@ -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