Merge pull request #3892 from smoogipoo/standalone-chat-fixes

Various standalone chat display fixes
This commit is contained in:
Dean Herbert 2018-12-21 14:12:37 +09:00 committed by GitHub
commit 1e39a4e09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,9 +98,9 @@ namespace osu.Game.Online.Chat
return;
if (text[0] == '/')
ChannelManager?.PostCommand(text.Substring(1));
ChannelManager?.PostCommand(text.Substring(1), Channel);
else
ChannelManager?.PostMessage(text);
ChannelManager?.PostMessage(text, target: Channel);
textbox.Text = string.Empty;
}
@ -133,6 +133,8 @@ namespace osu.Game.Online.Chat
if (channel == null) return;
channel.NewMessagesArrived += newMessages;
newMessages(channel.Messages);
}
private void newMessages(IEnumerable<Message> messages)