diff --git a/apps/dispatch-server/socket-events/connect-desktop.ts b/apps/dispatch-server/socket-events/connect-desktop.ts
index 779eb341..cb4b8737 100644
--- a/apps/dispatch-server/socket-events/connect-desktop.ts
+++ b/apps/dispatch-server/socket-events/connect-desktop.ts
@@ -38,7 +38,7 @@ export const handleConnectDesktop = (socket: Socket, io: Server) => () => {
: user.publicId,
};
if (data.shouldTransmit) {
- socket.to("pilots").emit("other-ptt", otherPttData);
+ socket.to("dispatchers").emit("other-ptt", otherPttData);
socket.to("pilots").emit("other-ptt", otherPttData);
}
});
diff --git a/apps/dispatch/app/_components/Audio.tsx b/apps/dispatch/app/_components/Audio.tsx
index f3b5bc42..918f50a2 100644
--- a/apps/dispatch/app/_components/Audio.tsx
+++ b/apps/dispatch/app/_components/Audio.tsx
@@ -39,12 +39,6 @@ export const Audio = () => {
useEffect(() => {
setShowSource(true);
- const timeout = setTimeout(() => {
- setShowSource(false);
- }, 6000);
- return () => {
- clearTimeout(timeout);
- };
}, [source, isTalking]);
useEffect(() => {
const joinRoom = async () => {
@@ -64,17 +58,24 @@ export const Audio = () => {
return (
<>
- {state === "error" && (
-
{message}
- )}
+ {state === "error" &&
{message}
}
{showSource && source && (
-
{source}
+
+
+
)}
@@ -142,10 +129,7 @@ export const Audio = () => {
disconnect();
}}
>
-
+
Disconnect