mirror of
https://github.com/ppy/osu
synced 2024-12-12 18:07:52 +00:00
Merge branch 'chat-mention' of https://github.com/Craftplacer/osu into chat-mention
This commit is contained in:
commit
1c1b5aa939
@ -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