-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not remove voip listeners for wrong user (#1686)
### Overview Consider this scenario where user A logs out and then user B logs in 1. User B logs in, new event listeners are attached 2. StreamVideo useEffect for A unmounts listeners are removed 3. Now there is no more event listeners This is fixed by this PR Additionally: also added a method for clearing logout callbacks
- Loading branch information
1 parent
03abcd0
commit c6dd17d
Showing
2 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters