Merge branch 'chat-mention' of https://github.com/Craftplacer/osu into chat-mention

This commit is contained in:
Craftplacer 2020-02-08 10:45:41 +01:00
commit 1c1b5aa939

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;