【聊天】去除登录之前的消息不显示的限制

dev_chengFeng
gaoxin 2021-03-26 11:31:14 +08:00
parent 1801a3d820
commit cb15f601b3
1 changed files with 3 additions and 3 deletions

View File

@ -284,8 +284,8 @@ function this.ChatDataAdapter(channel, data)
if newMsgId ~= -1 then -- 消息号为-1表示屏蔽消息保存数据但不保存消息号
this.SetMsgIdFlag(channel, newMsgId) -- 保存当前消息的消息号,避免下次刷新时还会请求
end
__DebugLog(Language[10363]..tostring(tonumber(newChat.times) <= this.LoginTimeStamp))
if tonumber(newChat.times) > this.LoginTimeStamp then -- 登录时间之前的消息都不显示
-- __DebugLog(Language[10363]..tostring(tonumber(newChat.times) <= this.LoginTimeStamp))
-- if tonumber(newChat.times) > this.LoginTimeStamp - 7200000 then -- 登录时间之前的消息都不显示
if channel ~= CHAT_CHANNEL.SYSTEM or this.IsShowInChatPanel(newChat.messageType) then
if not GoodFriendManager.IsInBlackList(newChat.senderId) then -- 判断是否在黑名单中
table.insert(this.ChatList[channel], newChat)
@ -298,7 +298,7 @@ function this.ChatDataAdapter(channel, data)
if this.IsShowInHorseRace(newChat.messageType) then
HorseRaceManager.AddRaceData(newChat)
end
end
-- end
end
__DebugLog("--")
end