From 6b6629e9fd462a76c73271440a4fc31c7debdf92 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 21 Dec 2018 14:02:29 +0900 Subject: [PATCH 1/2] Fix not posting to the correct channel --- osu.Game/Online/Chat/StandAloneChatDisplay.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Online/Chat/StandAloneChatDisplay.cs b/osu.Game/Online/Chat/StandAloneChatDisplay.cs index cb4bf9fdf8..7965107f5e 100644 --- a/osu.Game/Online/Chat/StandAloneChatDisplay.cs +++ b/osu.Game/Online/Chat/StandAloneChatDisplay.cs @@ -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; } From 6a9b0a0ba3cd98589a382411486c438dc277ad41 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 21 Dec 2018 14:02:36 +0900 Subject: [PATCH 2/2] Fix initial messages not being received --- osu.Game/Online/Chat/StandAloneChatDisplay.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Online/Chat/StandAloneChatDisplay.cs b/osu.Game/Online/Chat/StandAloneChatDisplay.cs index 7965107f5e..332334a043 100644 --- a/osu.Game/Online/Chat/StandAloneChatDisplay.cs +++ b/osu.Game/Online/Chat/StandAloneChatDisplay.cs @@ -133,6 +133,8 @@ namespace osu.Game.Online.Chat if (channel == null) return; channel.NewMessagesArrived += newMessages; + + newMessages(channel.Messages); } private void newMessages(IEnumerable messages)