Using capital letter for radio channel prefixes works now (#20846)

Co-authored-by: gus <august.eymann@gmail.ccom>
This commit is contained in:
gus
2023-10-09 01:07:54 -04:00
committed by GitHub
parent 8e507af3ba
commit 9eede28d8c
2 changed files with 2 additions and 1 deletions

View File

@@ -703,7 +703,7 @@ public sealed class ChatUIController : UIController
public void UpdateSelectedChannel(ChatBox box) public void UpdateSelectedChannel(ChatBox box)
{ {
var (prefixChannel, _, radioChannel) = SplitInputContents(box.ChatInput.Input.Text); var (prefixChannel, _, radioChannel) = SplitInputContents(box.ChatInput.Input.Text.ToLower());
if (prefixChannel == ChatSelectChannel.None) if (prefixChannel == ChatSelectChannel.None)
box.ChatInput.ChannelSelector.UpdateChannelSelectButton(box.SelectedChannel, null); box.ChatInput.ChannelSelector.UpdateChannelSelectButton(box.SelectedChannel, null);

View File

@@ -133,6 +133,7 @@ public abstract class SharedChatSystem : EntitySystem
} }
var channelKey = input[1]; var channelKey = input[1];
channelKey = char.ToLower(channelKey);
output = SanitizeMessageCapital(input[2..].TrimStart()); output = SanitizeMessageCapital(input[2..].TrimStart());
if (channelKey == DefaultChannelKey) if (channelKey == DefaultChannelKey)