diff options
| author | David Skoland <davidskoland@gmail.com> | 2023-11-23 19:58:55 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2023-11-23 19:58:55 +0100 |
| commit | a1b7ec16b3cfb9e4ac0f61ed74269416cd63475a (patch) | |
| tree | 5f12fa043db2ac2ecae657137376f377ff741aca /webAO/packets/handlers/handleMS.ts | |
| parent | c599fe02347d5dd26a97edc6eedc6cee3d74e3e2 (diff) | |
Hide chatbox on blankposts
Diffstat (limited to 'webAO/packets/handlers/handleMS.ts')
| -rw-r--r-- | webAO/packets/handlers/handleMS.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleMS.ts b/webAO/packets/handlers/handleMS.ts index 894db3b..1c30d55 100644 --- a/webAO/packets/handlers/handleMS.ts +++ b/webAO/packets/handlers/handleMS.ts @@ -159,6 +159,8 @@ export const handleMS = (args: string[]) => { if (chatmsg.content.trim() === "") { //blankpost chatmsg.content = ""; + // empty string as chatbox means hide it + chatmsg.chatbox = ""; } // our own message appeared, reset the buttons |
