From f32ed62a764ec59fa91b291b617410c7ab7afa55 Mon Sep 17 00:00:00 2001 From: nocnico Date: Sat, 26 Jul 2025 12:21:23 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Chats=20k=C3=B6nnen=20nur=20mit=20Dispone?= =?UTF-8?q?nten=20er=C3=B6ffnet=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dispatch/app/_components/left/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dispatch/app/_components/left/Chat.tsx b/apps/dispatch/app/_components/left/Chat.tsx index 93b17997..16c340a3 100644 --- a/apps/dispatch/app/_components/left/Chat.tsx +++ b/apps/dispatch/app/_components/left/Chat.tsx @@ -56,7 +56,7 @@ export const Chat = () => { (d) => d.userId !== session.data?.user.id && !chats[d.userId], ); const filteredAircrafts = aircrafts?.filter( - (a) => a.userId !== session.data?.user.id && dispatcherConnected && chats[a.userId], + (a) => a.userId !== session.data?.user.id && dispatcherConnected && !chats[a.userId], ); const btnActive = pilotConnected || dispatcherConnected;