Using capital letter for radio channel prefixes works now (#20846)
Co-authored-by: gus <august.eymann@gmail.ccom>
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user