1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Avoid running message highlight processing more than once

This commit is contained in:
Salman Ahmed 2022-03-11 18:32:32 +03:00
parent cc87563d57
commit 5b70139b33

View File

@ -96,7 +96,7 @@ namespace osu.Game.Overlays.Chat
/// <remarks>
/// <see cref="CompositeDrawable.ScheduleAfterChildren"/> is for ensuring the scroll flow has updated with any new chat lines.
/// </remarks>
private void processMessageHighlighting() => ScheduleAfterChildren(() =>
private void processMessageHighlighting() => SchedulerAfterChildren.AddOnce(() =>
{
if (highlightedMessage.Value == null)
return;