mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
msg
This commit is contained in:
parent
3b4c8ad2f0
commit
4cca3b54e4
@ -217,7 +217,7 @@ func (m *Message) SendMessage(c *gin.Context) {
|
||||
Status: int32(status),
|
||||
})
|
||||
if err != nil {
|
||||
log.NewError(mcontext.GetOperationID(c), "SetSendMsgStatus failed")
|
||||
log.ZError(c, "SetSendMsgStatus failed", err)
|
||||
}
|
||||
apiresp.GinSuccess(c, respPb)
|
||||
}
|
||||
|
@ -175,9 +175,9 @@ func GetConversationIDByMsg(msg *sdkws.MsgData) string {
|
||||
case constant.SingleChatType:
|
||||
l := []string{msg.SendID, msg.RecvID}
|
||||
sort.Strings(l)
|
||||
return "n_" + strings.Join(l, "_") // single chat
|
||||
return "si_" + strings.Join(l, "_") // single chat
|
||||
case constant.GroupChatType:
|
||||
return "n_" + msg.GroupID // group chat
|
||||
return "g_" + msg.GroupID // group chat
|
||||
case constant.SuperGroupChatType:
|
||||
return "sg_" + msg.GroupID // super group chat
|
||||
case constant.NotificationChatType:
|
||||
|
Loading…
x
Reference in New Issue
Block a user