prevent sending or logging of empty chats

This commit is contained in:
ari melody 2024-08-30 12:33:40 +01:00
parent 5c936df3f6
commit cdaa7c678d
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 2 additions and 1 deletions

View file

@ -315,6 +315,7 @@ composeBox.addEventListener("keypress", event => {
});
function sendChat(msg) {
if (msg === "") return;
setTimeout(() => {
if (!ws) return;
ws.send(JSON.stringify({