mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-27 14:02:15 +08:00
fix: sn_ not sort
This commit is contained in:
parent
e72380328d
commit
a390c00bae
@ -39,7 +39,9 @@ func GetNotificationConversationIDByMsg(msg *sdkws.MsgData) string {
|
|||||||
case constant.ReadGroupChatType:
|
case constant.ReadGroupChatType:
|
||||||
return "n_" + msg.GroupID
|
return "n_" + msg.GroupID
|
||||||
case constant.NotificationChatType:
|
case constant.NotificationChatType:
|
||||||
return "n_" + msg.SendID + "_" + msg.RecvID
|
l := []string{msg.SendID, msg.RecvID}
|
||||||
|
sort.Strings(l)
|
||||||
|
return "n_" + strings.Join(l, "_")
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user