From b24e292c63a3e741f763a99f8e8e787484d2f308 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sun, 8 Sep 2024 03:17:07 +0200 Subject: [PATCH] Removed unnecessary logics --- src/components/gui/Chat.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/gui/Chat.vue b/src/components/gui/Chat.vue index c025888..1698e1e 100644 --- a/src/components/gui/Chat.vue +++ b/src/components/gui/Chat.vue @@ -33,13 +33,7 @@ const chatWindow = ref(null) const sendMessage = () => { if (!message.value.trim()) return - gameStore.connection?.emit('chat:send_message', { message: message.value }, (response: boolean) => { - if (!response) { - notifications.addNotification({ message: 'Failed to send message' }) - return - } - message.value = '' - }) + gameStore.connection?.emit('chat:send_message', { message: message.value }, (response: boolean) => {}); message.value = '' }