diff --git a/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatMessageBubble.xaml.cs b/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatMessageBubble.xaml.cs index b192e4eef6..a32f622d07 100644 --- a/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatMessageBubble.xaml.cs +++ b/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatMessageBubble.xaml.cs @@ -5,7 +5,7 @@ using Robust.Client.Graphics; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.XAML; using Robust.Shared.Utility; -using Content.Client._Funkystation.NanoChat +using Content.Client._Funkystation.NanoChat; namespace Content.Client._DV.CartridgeLoader.Cartridges; diff --git a/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatUiFragment.xaml.cs b/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatUiFragment.xaml.cs index 6acd1cfc9d..bb75b883ac 100644 --- a/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatUiFragment.xaml.cs +++ b/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatUiFragment.xaml.cs @@ -59,7 +59,7 @@ public sealed partial class NanoChatUiFragment : BoxContainer _newChatPopup = new(_maxNameLength, _maxIdJobLength); _editChatPopup = new(_maxNameLength, _maxIdJobLength); - _createGroupChatPopup = new(); + _createGroupChatPopup = new(_maxNameLength); _inviteToGroupPopup = new(); _groupMembersPopup = new(); _emojiPickerPopup = new(); diff --git a/Content.Client/_Funkystation/NanoChat/CreateGroupChatPopup.xaml.cs b/Content.Client/_Funkystation/NanoChat/CreateGroupChatPopup.xaml.cs index 211f04b1eb..4caf729ded 100644 --- a/Content.Client/_Funkystation/NanoChat/CreateGroupChatPopup.xaml.cs +++ b/Content.Client/_Funkystation/NanoChat/CreateGroupChatPopup.xaml.cs @@ -3,7 +3,6 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later AND MIT -using Content.Shared.Access.Components; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.CustomControls; using Robust.Client.UserInterface.XAML; @@ -15,7 +14,7 @@ public sealed partial class CreateGroupChatPopup : DefaultWindow { public event Action? OnGroupCreated; - public CreateGroupChatPopup() + public CreateGroupChatPopup(int maxFullNameLength) { RobustXamlLoader.Load(this); @@ -30,8 +29,8 @@ public sealed partial class CreateGroupChatPopup : DefaultWindow GroupNameInput.OnTextChanged += args => { - if (args.Text.Length > IdCardConsoleComponent.MaxFullNameLength) - GroupNameInput.Text = args.Text[..IdCardConsoleComponent.MaxFullNameLength]; + if (args.Text.Length > maxFullNameLength) + GroupNameInput.Text = args.Text[..maxFullNameLength]; ValidateInputs(); }; }