Parcourir la source

fix: summary plugin group enable bug

zhayujie il y a 2 ans
Parent
commit
238f05f453
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      plugins/linkai/linkai.py

+ 1 - 1
plugins/linkai/linkai.py

@@ -186,7 +186,7 @@ class LinkAI(Plugin):
     def _is_summary_open(self, context) -> bool:
         if not self.sum_config or not self.sum_config.get("enabled"):
             return False
-        if not context.kwargs.get("isgroup") and not self.sum_config.get("group_enabled"):
+        if context.kwargs.get("isgroup") and not self.sum_config.get("group_enabled"):
             return False
         return True