From 484c79a3fbd00eb75611e65c532efed5627bd0b1 Mon Sep 17 00:00:00 2001 From: Pablo de la Torre Jamardo Date: Sun, 20 Jul 2025 20:06:40 +0200 Subject: [PATCH] Clear displayed messages after deleting a chat --- chat-web-client/src/components/ChatLayout.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/chat-web-client/src/components/ChatLayout.vue b/chat-web-client/src/components/ChatLayout.vue index 820a03e..bc8af32 100644 --- a/chat-web-client/src/components/ChatLayout.vue +++ b/chat-web-client/src/components/ChatLayout.vue @@ -50,6 +50,7 @@ const loadHistory = async () => { // Cargar mensajes de un chat especĂ­fico const loadMessages = async (selectedChatId) => { if (!chatUuid.value) { + messages.value = [] return; } try {