mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 17:43:12 +08:00
Make messageRemoved use helper method
This commit is contained in:
parent
0225372e83
commit
997b51b1f8
@ -246,7 +246,7 @@ namespace osu.Game.Overlays.Chat
|
||||
|
||||
private void messageRemoved(Message removed)
|
||||
{
|
||||
chatLines.FirstOrDefault(c => c.Message == removed)?.FadeColour(Color4.Red, 400).FadeOut(600).Expire();
|
||||
findChatLine(removed)?.FadeColour(Color4.Red, 400).FadeOut(600).Expire();
|
||||
}
|
||||
|
||||
private IEnumerable<ChatLine> chatLines => ChatLineFlow.Children.OfType<ChatLine>();
|
||||
|
Loading…
Reference in New Issue
Block a user