From a11c8683c40d5bd484841999935f62cb5e474d75 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Fri, 11 Jul 2025 23:31:47 -0700 Subject: [PATCH] =?UTF-8?q?Chat=20tabs=20k=C3=B6nnen=20durch=20erneutes=20?= =?UTF-8?q?ausw=C3=A4hlen=20geschlossen=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dispatch/app/_components/left/Chat.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/dispatch/app/_components/left/Chat.tsx b/apps/dispatch/app/_components/left/Chat.tsx index 635c518e..8f75105c 100644 --- a/apps/dispatch/app/_components/left/Chat.tsx +++ b/apps/dispatch/app/_components/left/Chat.tsx @@ -139,7 +139,13 @@ export const Chat = () => { setSelectedChat(userId)} + onClick={() => { + if (selectedChat === userId) { + setSelectedChat(null); + return; + } + setSelectedChat(userId); + }} > {chat.name} {chat.notification && }