Added autoFocus on Sds and MissionLog

This commit is contained in:
PxlLoewe
2025-06-09 23:43:51 -07:00
parent b4b7b4def2
commit 66a65ab9a4
9 changed files with 72 additions and 59 deletions

View File

@@ -112,22 +112,6 @@ export const handleConnectPilot =
connectedAircraftEntry,
);
// Add a listener for station-specific events
socket.on("ptt", async ({ shouldTransmit, channel }) => {
if (shouldTransmit) {
io.to("dispatchers").emit("other-ptt", {
publicUser: getPublicUser(user),
channel,
source: Station?.bosCallsignShort,
});
io.to("piots").emit("other-ptt", {
publicUser: getPublicUser(user),
channel,
source: Station?.bosCallsignShort,
});
}
});
socket.on("disconnect", async () => {
await prisma.connectedAircraft
.update({