Merge remote-tracking branch 'origin/errcode' into errcode

This commit is contained in:
withchao
2023-04-26 15:14:43 +08:00
3 changed files with 70 additions and 79 deletions
+5
View File
@@ -11,7 +11,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"
)
func newContentTypeConf() map[int32]config.NotificationConf {
@@ -102,6 +104,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