mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Properly rename event handler
This commit is contained in:
parent
61cf88be82
commit
5875f2158c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user