Skip to content

Conversation

@yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented Mar 3, 2021

  • I have read the Contributing Guide
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Proposed changes (including videos or screenshots)

The Function where Jitsi call is started gets called many times due to room.usernames dep of useMemo, this dep triggers reloading of this function many times.
So removing this dep from useMemo dependencies

Issue(s)

fixes #20946

Steps to test or reproduce

Further comments

I am not sure if this is the correct way to do it, But I checked that room.usernames triggers the useMemo many times, even though room.usernames is not being changed. I am not sure why is it so. Will look into it more, meanwhile this will fix broken jitsi calls

@tassoevan tassoevan merged commit cfab6c2 into RocketChat:develop Mar 4, 2021
@sampaiodiego sampaiodiego mentioned this pull request Mar 5, 2021
sampaiodiego pushed a commit that referenced this pull request Mar 5, 2021
* removing dep from useMemo

* Avoid missing dep in useMemo

Co-authored-by: Tasso Evangelista <[email protected]>
sampaiodiego pushed a commit that referenced this pull request Mar 8, 2021
* removing dep from useMemo

* Avoid missing dep in useMemo

Co-authored-by: Tasso Evangelista <[email protected]>
sampaiodiego pushed a commit that referenced this pull request Mar 8, 2021
* removing dep from useMemo

* Avoid missing dep in useMemo

Co-authored-by: Tasso Evangelista <[email protected]>
vanhoang1107 pushed a commit to vanhoang1107/Rocket.Chat that referenced this pull request Mar 9, 2021
* rocketchat/master:
  Bump version to 3.12.1
  [FIX] Missing spaces on attachment (RocketChat#21020)
  [IMPROVE] Close Call contextual bar after starting Jitsi call (RocketChat#21004)
  [FIX] Stopping Jitsi reload (RocketChat#20973)
gabriellsh added a commit that referenced this pull request Mar 29, 2021
…s/remove_user

* 'develop' of github.com:RocketChat/Rocket.Chat:
  Regression: When only 'teams' type is provided, show only rooms with teamMain on rooms.adminRooms endpoint (#21322)
  [FIX] 'Chats in Progress' Section is not rendering when the routing algorithm is not Manual Selection (#21324)
  Bump version to 3.12.2
  Bump version to 3.12.1
  [FIX] Missing spaces on attachment (#21020)
  [IMPROVE] Close Call contextual bar after starting Jitsi call (#21004)
  [FIX] Stopping Jitsi reload (#20973)
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.

3.12.x Jitsi integration broken (Jitsi gets reloaded every few seconds)

3 participants