{chat.messages.map((chatMessage) => {
const isSender = chatMessage.senderId === session.data?.user.id;
@@ -162,64 +155,71 @@ export const Chat = () => {
);
})}
-
-
-
+ {!selectedChat && (
+
+ Wähle einen Nutzer aus und drücke auf + um einen Chat zu starten
-
-
+ )}
+ {selectedChat && (
+
+
+
+
+
+
+ )}
)}
diff --git a/apps/dispatch/app/_components/map/MissionMarkers.tsx b/apps/dispatch/app/_components/map/MissionMarkers.tsx
index ed42336a..ad9d73e7 100644
--- a/apps/dispatch/app/_components/map/MissionMarkers.tsx
+++ b/apps/dispatch/app/_components/map/MissionMarkers.tsx
@@ -372,6 +372,7 @@ export const MissionLayer = () => {
getMissionsAPI({
OR: [{ state: "draft" }, { state: "running" }],
}),
+ refetchInterval: 10_000,
});
const filteredMissions = useMemo(() => {
diff --git a/apps/dispatch/app/_store/audioStore.ts b/apps/dispatch/app/_store/audioStore.ts
index 77d3956e..a736deee 100644
--- a/apps/dispatch/app/_store/audioStore.ts
+++ b/apps/dispatch/app/_store/audioStore.ts
@@ -46,7 +46,7 @@ export const useAudioStore = create