From 2b1d9c21cb9af3d2cd5922f26c0cc54e8bb0959f Mon Sep 17 00:00:00 2001 From: xiangxiangxiong9 <1296976552@qq.com> Date: Tue, 1 Aug 2023 11:20:02 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#2226=20-=20=E4=BF=AE=E6=94=B9=20coolq/cq?= =?UTF-8?q?code.go#L54=20=E5=AE=89=E5=8D=93=E7=AB=AF=E7=A7=81=E8=81=8A?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=97=B6r.GroupID=E4=BC=BC=E4=B9=8E=E4=B8=BA?= =?UTF-8?q?0=20(#2230)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coolq/cqcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolq/cqcode.go b/coolq/cqcode.go index a08a275..6397280 100644 --- a/coolq/cqcode.go +++ b/coolq/cqcode.go @@ -51,7 +51,7 @@ func replyID(r *message.ReplyElement, source message.Source) int32 { } // 私聊时,部分(不确定)的账号会在 ReplyElement 中带有 GroupID 字段。 // 这里需要判断是由于 “直接回复” 功能,GroupID 为触发直接回复的来源那个群。 - if source.SourceType == message.SourcePrivate && (r.Sender == source.PrimaryID || r.GroupID == source.PrimaryID) { + if source.SourceType == message.SourcePrivate && (r.Sender == source.PrimaryID || r.GroupID == source.PrimaryID || r.GroupID == 0) { // 私聊似乎腾讯服务器有bug? seq = int32(uint16(seq)) id = r.Sender