Using capital letter for radio channel prefixes works now (#20846)
Co-authored-by: gus <august.eymann@gmail.ccom>
This commit is contained in:
parent
8db6e9d05a
commit
df6011122f
|
|
@ -717,7 +717,7 @@ public sealed class ChatUIController : UIController
|
|||
|
||||
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)
|
||||
box.ChatInput.ChannelSelector.UpdateChannelSelectButton(box.SelectedChannel, null);
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ public abstract class SharedChatSystem : EntitySystem
|
|||
}
|
||||
|
||||
var channelKey = input[1];
|
||||
channelKey = char.ToLower(channelKey);
|
||||
output = SanitizeMessageCapital(input[2..].TrimStart());
|
||||
|
||||
if (channelKey == DefaultChannelKey)
|
||||
|
|
|
|||
Loading…
Reference in New Issue