From a08633715c6e61a70ffa849897a251d1455f68e7 Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Tue, 8 Mar 2022 20:10:35 +0800 Subject: [PATCH] fix(GroupJoinRequest): fix build msg author error --- efb_qq_plugin_go_cqhttp/GoCQHttp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/efb_qq_plugin_go_cqhttp/GoCQHttp.py b/efb_qq_plugin_go_cqhttp/GoCQHttp.py index 71d657a..531cf05 100644 --- a/efb_qq_plugin_go_cqhttp/GoCQHttp.py +++ b/efb_qq_plugin_go_cqhttp/GoCQHttp.py @@ -397,13 +397,13 @@ class GoCQHttp(BaseClient): context["group_id"] = str(context["group_id"]) + "_notification" context["message_type"] = "group" context["event_description"] = "\u2139 New Group Join Request" - original_group = self.get_group_info(context["group_id"], False) + original_group = self.get_group_info(context["group_id_orig"], False) group_name = context["group_id"] if original_group is not None and "group_name" in original_group: group_name = original_group["group_name"] msg = Message() msg.uid = "group" + "_" + str(context["group_id"]) - msg.author = self.chat_manager.build_efb_chat_as_system_user(context) + msg.author = (self.chat_manager.build_efb_chat_as_system_user(context)).other msg.chat = self.chat_manager.build_efb_chat_as_group(context) msg.deliver_to = coordinator.master msg.type = MsgType.Text