瀏覽代碼

fix: summary switch bug

zhayujie 1 年之前
父節點
當前提交
b09b46c045
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/linkai/linkai.py

+ 1 - 1
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