mirror of
https://github.com/ppy/osu
synced 2025-03-25 04:18:03 +00:00
Merge remote-tracking branch 'origin/master' into timeshift-wip
This commit is contained in:
commit
1df4826a1d
@ -98,9 +98,9 @@ namespace osu.Game.Online.Chat
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (text[0] == '/')
|
if (text[0] == '/')
|
||||||
ChannelManager?.PostCommand(text.Substring(1));
|
ChannelManager?.PostCommand(text.Substring(1), Channel);
|
||||||
else
|
else
|
||||||
ChannelManager?.PostMessage(text);
|
ChannelManager?.PostMessage(text, target: Channel);
|
||||||
|
|
||||||
textbox.Text = string.Empty;
|
textbox.Text = string.Empty;
|
||||||
}
|
}
|
||||||
@ -133,6 +133,8 @@ namespace osu.Game.Online.Chat
|
|||||||
if (channel == null) return;
|
if (channel == null) return;
|
||||||
|
|
||||||
channel.NewMessagesArrived += newMessages;
|
channel.NewMessagesArrived += newMessages;
|
||||||
|
|
||||||
|
newMessages(channel.Messages);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void newMessages(IEnumerable<Message> messages)
|
private void newMessages(IEnumerable<Message> messages)
|
||||||
|
Loading…
Reference in New Issue
Block a user