Skip to content

Commit

Permalink
fix: beam permission prompt in VC room (#3172)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Aug 12, 2024
1 parent cadc7ef commit 3c32d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-sdk/src/hooks/useAwayNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useHMSVanillaStore } from '../primitives/HmsRoomProvider';
export const useAwayNotifications = () => {
const vanillaStore = useHMSVanillaStore();
const requestPermission = useCallback(async () => {
if (!Notification || Notification?.permission === 'granted') {
if (!Notification || Notification?.permission === 'granted' || Notification?.permission === 'denied') {
return;
}
const unsubscribe = vanillaStore.subscribe(async role => {
Expand Down

0 comments on commit 3c32d9c

Please sign in to comment.