mirror of
https://github.com/ppy/osu
synced 2024-12-13 02:17:32 +00:00
Restore usage of AddRange
This commit is contained in:
parent
102caf4b91
commit
1d0b89d592
@ -56,8 +56,7 @@ namespace osu.Game.Online.Chat
|
||||
{
|
||||
messages = messages.Except(Messages).ToArray();
|
||||
|
||||
foreach (Message message in messages)
|
||||
Messages.Add(message);
|
||||
Messages.AddRange(messages);
|
||||
|
||||
purgeOldMessages();
|
||||
|
||||
|
@ -86,8 +86,7 @@ namespace osu.Game.Overlays.Chat
|
||||
// Add up to last Channel.MAX_HISTORY messages
|
||||
var displayMessages = newMessages.Skip(Math.Max(0, newMessages.Count() - Channel.MAX_HISTORY));
|
||||
|
||||
foreach (Message m in displayMessages)
|
||||
flow.Add(new ChatLine(m));
|
||||
flow.AddRange(displayMessages.Select(m => new ChatLine(m)));
|
||||
|
||||
if (!IsLoaded) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user