Restore usage of AddRange

This commit is contained in:
Dean Herbert 2017-08-21 18:51:14 +09:00
parent 102caf4b91
commit 1d0b89d592
2 changed files with 2 additions and 4 deletions

View File

@ -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();

View File

@ -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;