Skip to content

Commit

Permalink
fix: unsubscribe after notification requested
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 authored Jul 22, 2024
1 parent 5fa4f4a commit 5322549
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 @@ -12,8 +12,8 @@ export const useAwayNotifications = () => {
}
const unsubscribe = vanillaStore.subscribe(async role => {
if (role && role !== '__internal_recorder') {
unsubscribe?.();
await Notification.requestPermission();
unsubscribe?.();
}
}, selectLocalPeerRoleName);
}, [vanillaStore]);
Expand Down

0 comments on commit 5322549

Please sign in to comment.