diff --git a/packages/hms-video-store/src/transport/index.ts b/packages/hms-video-store/src/transport/index.ts index b5c494f562..f3c0c9e6ca 100644 --- a/packages/hms-video-store/src/transport/index.ts +++ b/packages/hms-video-store/src/transport/index.ts @@ -786,10 +786,6 @@ export default class HMSTransport { const log = newState === 'disconnected' ? HMSLogger.w.bind(HMSLogger) : HMSLogger.d.bind(HMSLogger); log(TAG, `Subscribe ice connection state change: ${newState}`); - // if (newState === 'failed') { - // // await this.handleIceConnectionFailure(HMSConnectionRole.Subscribe); - // } - if (newState === 'connected') { const callback = this.callbacks.get(SUBSCRIBE_ICE_CONNECTION_CALLBACK_ID); this.callbacks.delete(SUBSCRIBE_ICE_CONNECTION_CALLBACK_ID); diff --git a/packages/react-sdk/src/hooks/useAwayNotifications.ts b/packages/react-sdk/src/hooks/useAwayNotifications.ts index 6161c34790..cd72f9c3c5 100644 --- a/packages/react-sdk/src/hooks/useAwayNotifications.ts +++ b/packages/react-sdk/src/hooks/useAwayNotifications.ts @@ -7,6 +7,10 @@ import { useHMSVanillaStore } from '../primitives/HmsRoomProvider'; export const useAwayNotifications = () => { const vanillaStore = useHMSVanillaStore(); const requestPermission = useCallback(async () => { + // Headless check for beam + if (navigator.webdriver) { + return; + } if (!Notification || Notification?.permission === 'granted' || Notification?.permission === 'denied') { return; }