Add ahelp typing indicator for admins (#19060)

* Add ahelp typing indicator for admins

* Lower typing updates throttle from 3 seconds to 1

* Add stopping typing when sending a message

* Lower typing indicator timeout from 15 to 10 seconds
This commit is contained in:
DrSmugleaf
2023-08-13 16:03:17 -07:00
committed by GitHub
parent c7bff10300
commit 35d7656784
7 changed files with 168 additions and 0 deletions

View File

@@ -62,4 +62,38 @@ namespace Content.Shared.Administration
DiscordRelayEnabled = enabled;
}
}
/// <summary>
/// Sent by the client to notify the server when it begins or stops typing.
/// </summary>
[Serializable, NetSerializable]
public sealed class BwoinkClientTypingUpdated : EntityEventArgs
{
public NetUserId Channel { get; }
public bool Typing { get; }
public BwoinkClientTypingUpdated(NetUserId channel, bool typing)
{
Channel = channel;
Typing = typing;
}
}
/// <summary>
/// Sent by server to notify admins when a player begins or stops typing.
/// </summary>
[Serializable, NetSerializable]
public sealed class BwoinkPlayerTypingUpdated : EntityEventArgs
{
public NetUserId Channel { get; }
public string PlayerName { get; }
public bool Typing { get; }
public BwoinkPlayerTypingUpdated(NetUserId channel, string playerName, bool typing)
{
Channel = channel;
PlayerName = playerName;
Typing = typing;
}
}
}