1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 21:00:33 +08:00

Schedule chat line highlight after children to handle non-loaded lines

This commit is contained in:
Salman Ahmed 2022-03-10 02:48:33 +03:00
parent 2d8983383a
commit 93cf93943f

View File

@ -93,7 +93,8 @@ namespace osu.Game.Overlays.Chat
return;
// schedule highlight to ensure it performs after any pending "newMessagesArrived" calls.
Schedule(() =>
// also schedule after children to ensure the scroll flow is updated with any new chat lines.
ScheduleAfterChildren(() =>
{
var chatLine = chatLines.SingleOrDefault(c => c.Message.Equals(m.NewValue));