open-im-server
open-im-server copied to clipboard
为什么单聊,自己的其他设备要收到消息, 而群聊,自己的其他设备就不需要收到消息
if in.GetSessionType() == constant.SingleChatType {
userIDList = genUidPlatformArray(in.SendID)
for _, v := range userIDList {
UIDAndPID = strings.Split(v, " ")
if conn := ws.getUserConn(v); conn != nil {
_ = sendMsgToUser(conn, replyBytes.Bytes(), in, UIDAndPID[1], UIDAndPID[0])
}
}
}
一个账号的多个设备登录,同时都收到消息,有没有办法移除其他设备的小红点,以及其他设备的未读消息,改为已读