Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not remove voip listeners for wrong user #1686

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

santhoshvai
Copy link
Member

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

@santhoshvai santhoshvai merged commit c6dd17d into main Feb 18, 2025
10 checks passed
@santhoshvai santhoshvai deleted the login-multiple branch February 18, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants