From d36088972943dd703f10a0e05cd78738e9e21d75 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Mon, 16 Jun 2025 13:53:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E6=8E=A5=E6=94=B6=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=97=B6=E6=B7=BB=E5=8A=A0=E5=AF=B9=E7=A7=81=E4=BF=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=B6=88=E6=81=AF=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E7=9A=84=E5=AE=8C=E6=95=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ws_client/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ws_client/client.go b/ws_client/client.go index 8a44a0b..8599156 100644 --- a/ws_client/client.go +++ b/ws_client/client.go @@ -86,11 +86,13 @@ func (c *WebSocketClient) receiveMessages() { GroupId: event.GroupID, UserCard: event.Sender.Card, } - } else { + } else if event.MessageType == constants.PRIVATE_MSG { msg.GroupInfo = model.GroupInfo{ IsGroupMsg: false, GroupId: event.Sender.GroupID, } + } else { + return } go func() { reply := handler.MsgInHandler(msg)