submodule update & fixes the ahelpwindow further

This commit is contained in:
Paul
2022-01-03 04:14:10 +01:00
parent 7e266b41ff
commit 33572c5cc8
5 changed files with 25 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ namespace Content.Client.Administration.UI.CustomControls
public readonly NetUserId ChannelId;
public int Unread { get; private set; } = 0;
public DateTime LastMessage { get; private set; }
public DateTime LastMessage { get; private set; } = DateTime.MinValue;
public BwoinkPanel(BwoinkSystem bwoinkSys, NetUserId userId)
{
@@ -34,9 +34,10 @@ namespace Content.Client.Administration.UI.CustomControls
private void Input_OnTextEntered(LineEdit.LineEditEventArgs args)
{
if (!string.IsNullOrWhiteSpace(args.Text))
_bwoinkSystem.Send(ChannelId, args.Text);
if (string.IsNullOrWhiteSpace(args.Text))
return;
_bwoinkSystem.Send(ChannelId, args.Text);
SenderLineEdit.Clear();
}