open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

为什么单聊,自己的其他设备要收到消息, 而群聊,自己的其他设备就不需要收到消息

Open YitianJiang opened this issue 2 years ago • 1 comments

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])
		}
	}
}

YitianJiang avatar Mar 04 '22 10:03 YitianJiang

一个账号的多个设备登录,同时都收到消息,有没有办法移除其他设备的小红点,以及其他设备的未读消息,改为已读

hhtmmtchina avatar Aug 16 '22 04:08 hhtmmtchina