mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 11:36:44 +08:00
groupID
This commit is contained in:
parent
5c9ecf38df
commit
4214521dea
@ -10,7 +10,9 @@ import (
|
|||||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg"
|
"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/proto/sdkws"
|
||||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
|
||||||
|
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
|
// "google.golang.org/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MsgClient struct {
|
type MsgClient struct {
|
||||||
@ -59,6 +61,9 @@ func (c *MsgClient) Notification(ctx context.Context, sendID, recvID string, con
|
|||||||
var title, desc, ex string
|
var title, desc, ex string
|
||||||
msg.SendID = sendID
|
msg.SendID = sendID
|
||||||
msg.RecvID = recvID
|
msg.RecvID = recvID
|
||||||
|
if sessionType == constant.SuperGroupChatType {
|
||||||
|
msg.GroupID = recvID
|
||||||
|
}
|
||||||
msg.Content = content
|
msg.Content = content
|
||||||
msg.MsgFrom = constant.SysMsgType
|
msg.MsgFrom = constant.SysMsgType
|
||||||
msg.ContentType = contentType
|
msg.ContentType = contentType
|
||||||
|
Loading…
x
Reference in New Issue
Block a user