From 4214521dea0d7013a9f0350a1bde2e47eca88877 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 26 Apr 2023 14:44:45 +0800 Subject: [PATCH] groupID --- pkg/rpcclient/msg.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/rpcclient/msg.go b/pkg/rpcclient/msg.go index f406c701f..436980291 100644 --- a/pkg/rpcclient/msg.go +++ b/pkg/rpcclient/msg.go @@ -10,7 +10,9 @@ import ( "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg" "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws" "github.com/OpenIMSDK/Open-IM-Server/pkg/utils" + "github.com/golang/protobuf/proto" + // "google.golang.org/protobuf/proto" ) type MsgClient struct { @@ -59,6 +61,9 @@ func (c *MsgClient) Notification(ctx context.Context, sendID, recvID string, con var title, desc, ex string msg.SendID = sendID msg.RecvID = recvID + if sessionType == constant.SuperGroupChatType { + msg.GroupID = recvID + } msg.Content = content msg.MsgFrom = constant.SysMsgType msg.ContentType = contentType