Procházet zdrojové kódy

fix: summary switch bug

zhayujie před 1 rokem
rodič
revize
b09b46c045
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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