mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
fix: summary switch bug
This commit is contained in:
@@ -196,7 +196,7 @@ class LinkAI(Plugin):
|
|||||||
if 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 False
|
||||||
support_type = self.sum_config.get("type") or ["FILE", "SHARING"]
|
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 False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user