浏览代码

fix: summary plugin group enable bug

zhayujie 2 年之前
父节点
当前提交
238f05f453
共有 1 个文件被更改,包括 1 次插入1 次删除
  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