1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:02:55 +08:00

Fix incorrect date comparison

This commit is contained in:
Andrei Zavatski 2019-10-22 01:55:26 +03:00
parent bb7af1e39c
commit 2896ed90e2

View File

@ -99,7 +99,7 @@ namespace osu.Game.Overlays.Chat
displayMessages.ForEach(m =>
{
if (lastMessage == null || lastMessage.Timestamp.ToLocalTime().Day != m.Timestamp.ToLocalTime().Day)
if (lastMessage == null || lastMessage.Timestamp.ToLocalTime().Date != m.Timestamp.ToLocalTime().Date)
ChatLineFlow.Add(CreateDaySeparator(m.Timestamp));
ChatLineFlow.Add(CreateChatLine(m));