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] Broken useEffect opened new BBB Tab twice #20770

Merged
merged 4 commits into from
Mar 23, 2021

Conversation

Cosnavel
Copy link
Contributor

@Cosnavel Cosnavel commented Feb 15, 2021

#19778 has a little Bug in the useEffect Hook. When you set the Setting "Open in the new Window" to true, a new tab gets opened every time you click on the call button. The intended usage should be that a new tab only opens when you click the join button.
Furthermore, when you start a BBB Meeting, two new tabs get opened due to the broken useEffect.

See the gif:

CleanShot 2021-02-15 at 6 42 32

I added an Or with the openNewWindow Setting to the Conditional to break out of useEffect and not call startCall().
This fixed the issue for the openNewWindow Setting and kept the iFrame Integration as it is.

CleanShot 2021-02-15 at 6 43 35

closes #20944

@Cosnavel
Copy link
Contributor Author

@tiagoevanp & @ggazzo could you please review this? 🚀

@Cosnavel
Copy link
Contributor Author

Cosnavel commented Mar 1, 2021

Refs #20944

@ggazzo ggazzo merged commit 7199a7c into RocketChat:develop Mar 23, 2021
@sampaiodiego sampaiodiego mentioned this pull request Apr 3, 2021
13 tasks
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.

Broken useEffect opened new BBB Tab twice
2 participants