Skip to content

Commit 9de6324

Browse files
committed
ran tests
1 parent 9e8138f commit 9de6324

File tree

1 file changed

+6
-2
lines changed
  • apps/desktop/src/components/toast

1 file changed

+6
-2
lines changed

apps/desktop/src/components/toast/ota.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { check } from "@tauri-apps/plugin-updater";
1010
import { useEffect, useRef } from "react";
1111

1212
import { sonnerToast, toast } from "@hypr/ui/components/ui/toast";
13-
import { useOngoingSession } from "@hypr/utils/contexts";
13+
// import { useOngoingSession } from "@hypr/utils/contexts";
1414
import { DownloadProgress } from "./shared";
1515

1616
// exported for manual update checks
@@ -86,11 +86,13 @@ export default function OtaNotification() {
8686
// Track dismissed update versions to prevent showing same notification repeatedly
8787
const dismissedVersions = useRef(new Set<string>());
8888

89+
/*
8990
// Check if there's an active meeting session
9091
const ongoingSession = useOngoingSession((state) => ({
9192
status: state.status,
9293
sessionId: state.sessionId,
9394
}));
95+
*/
9496

9597
const appInApplicationsFolder = useQuery({
9698
queryKey: ["app-in-applications-folder"],
@@ -127,9 +129,11 @@ export default function OtaNotification() {
127129
}
128130

129131
// Don't show update notifications during active meetings
132+
/*
130133
if (ongoingSession.status === "running_active" || ongoingSession.status === "running_paused") {
131134
return;
132135
}
136+
*/
133137

134138
// Mark this version as shown
135139
dismissedVersions.current.add(update.version);
@@ -192,7 +196,7 @@ export default function OtaNotification() {
192196
],
193197
dismissible: true,
194198
});
195-
}, [checkForUpdate.data, ongoingSession.status]);
199+
}, [checkForUpdate.data]);
196200

197201
return null;
198202
}

0 commit comments

Comments
 (0)