mirror of
https://github.com/ppy/osu
synced 2025-01-19 04:20:59 +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 =>
|
joinedChannels.ItemsAdded += joinedChannels =>
|
||||||
{
|
{
|
||||||
foreach (var channel in joinedChannels)
|
foreach (var channel in joinedChannels)
|
||||||
channel.NewMessagesArrived += channel_newMessagesArrived;
|
channel.NewMessagesArrived += newMessagesArrived;
|
||||||
};
|
};
|
||||||
|
|
||||||
joinedChannels.ItemsRemoved += leftChannels =>
|
joinedChannels.ItemsRemoved += leftChannels =>
|
||||||
{
|
{
|
||||||
foreach (var channel in 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())
|
if (messages == null || !messages.Any())
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user