Skip to content

Commit

Permalink
Update publish-alpha (#3173)
Browse files Browse the repository at this point in the history
Co-authored-by: Ravi theja <[email protected]>
Co-authored-by: Eswar Prasad Clinton. A <[email protected]>
Co-authored-by: Amar Bathwal <[email protected]>
Co-authored-by: Kaustubh Kumar <[email protected]>
  • Loading branch information
5 people authored Aug 12, 2024
1 parent 6b9bec2 commit 83ee515
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 83ee515

Please sign in to comment.