Properly rename event handler

This commit is contained in:
Bartłomiej Dach 2020-02-05 19:20:16 +01:00
parent 61cf88be82
commit 5875f2158c

View File

@ -50,17 +50,17 @@ namespace osu.Game.Online.Chat
joinedChannels.ItemsAdded += joinedChannels =>
{
foreach (var channel in joinedChannels)
channel.NewMessagesArrived += channel_newMessagesArrived;
channel.NewMessagesArrived += newMessagesArrived;
};
joinedChannels.ItemsRemoved += leftChannels =>
{
foreach (var channel in leftChannels)
channel.NewMessagesArrived -= channel_newMessagesArrived;
channel.NewMessagesArrived -= newMessagesArrived;
};
}
private void channel_newMessagesArrived(IEnumerable<Message> messages)
private void newMessagesArrived(IEnumerable<Message> messages)
{
if (messages == null || !messages.Any())
return;