From 6b40114823cac61a92756af55e06a645a3847426 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 26 Jun 2024 00:51:58 +0200 Subject: clear message --- test-client/main.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'test-client/main.ts') diff --git a/test-client/main.ts b/test-client/main.ts index 0f841b06..04cd2331 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -214,6 +214,7 @@ function close_chat() { function toggle_chat() { if (chat) { if (chat.value.length) send({ type: "communicate", message: { text: chat.value } }) + else send({ type: "communicate" }) chat.remove() canvas.focus() chat = null; -- cgit v1.2.3-70-g09d2