소스 검색

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