push message modify

This commit is contained in:
Gordon 2022-01-21 09:39:09 +08:00
parent 8e10533681
commit 1944b24fba

View File

@ -94,8 +94,8 @@ func (r *RPCServer) OnlinePushMsg(_ context.Context, in *pbRelay.OnlinePushMsgRe
} }
//Single chat sender synchronization message //Single chat sender synchronization message
if in.MsgData.GetSessionType() == constant.SingleChatType { if in.MsgData.GetSessionType() == constant.SingleChatType {
for k, v := range ws.getSingleUserAllConn(recvID) { for k, v := range ws.getSingleUserAllConn(in.MsgData.SendID) {
_ = sendMsgToUser(v, replyBytes.Bytes(), in, k, recvID) _ = sendMsgToUser(v, replyBytes.Bytes(), in, k, in.MsgData.SendID)
} }
} }
if !tag { if !tag {