send msg time modify

This commit is contained in:
Gordon 2022-02-22 16:01:32 +08:00
parent 861dfc43a8
commit eddcac2343

View File

@ -57,9 +57,7 @@ func userRelationshipVerification(data *pbChat.SendMsgReq) {
}
func (rpc *rpcChat) encapsulateMsgData(msg *sdk_ws.MsgData) {
msg.ServerMsgID = GetMsgID(msg.SendID)
if msg.SendTime == 0 {
msg.SendTime = utils.GetCurrentTimestampByMill()
}
msg.SendTime = utils.GetCurrentTimestampByMill()
switch msg.ContentType {
case constant.Text:
fallthrough