[FIX] Fixing Jitsi call ended Issue.#21808
Conversation
ef96cbe to
bf6367a
Compare
|
@tiagoevanp Please review it. :) |
|
Hi, is it possible to drop it on open.rocket.chat for tests? |
|
I don't know if this is deployed on https://open.rocket.chat , but still no working there. Not possible to join. Detail on movie below bandicam.2021-04-28.08-59-58-358.mp4 |
|
@emikolajczak This fix isn't released yet, as this pull request is not merged. This fix will be available to test on open rocket chat server after this pr is merged and released. |
|
Understand. Do you know when can we expect release this? |
|
No, thats not in my hands, I can't say anything on this. Its upon Rocket Chat team to review this pr and merge it if it looks good. After that we can expect it to be released in some release candidate, after that happens we will be able to test it on open rocket chat workspace. |
|
Thanks for explanation. I will wait. |
3c8399d to
4685979
Compare
|
@tiagoevanp @ggazzo @sampaiodiego This seems like a useful pr and lots of community members are facing a problem due to this, please have a look. Thanks :) Adding proof that this pr solves the problem. Due to current issue, the button after 10 seconds tells that call ended, but by above GIF we can see that button is now functional and works as expected. I tested it thoroughly and everything seems to work as expected. @emikolajczak can you confirm if this is the required fix? |
That's great work @yash-rajpal - it would be fantastic if the main guys could finish checks on this and include it in the main code @sampaiodiego |
|
whats the internal timeline to review this? @sampaiodiego and in what time frame can we expect this to be merged? will there be a PATCH for all supported versions? or will it be in the next minor release? maybe in the version after the next? This information could prove to be insightful in determining weather we want to wait or if it's better to patch it on our own for our server until it finds it's way into the official codebase. |
|
Waiting that PR to be reviewed and then merged. |
ggazzo
left a comment
There was a problem hiding this comment.
hey @yash-rajpal thanks for your pr, I'm afraid the HEARTBEAT cannot be removed.
I mean this 'protocol' was not meant for "you", but to inform other users that never opened the contextualbar if the call is still alive
could you review the fix and keep it? thanks
|
@ggazzo Can you please clarify more on your comment, on what has to be done? This PR fixes that issue only, to let other users know if call is still active or not, which is currently broken. Do you want me to use JitsiBridge Class implementation, rather my own in the component? |
|
please ignore my comment, and sorry i was running out of time for the release so i ended up changing the code a little bit. |

Proposed changes (including videos or screenshots)
The new rewrite in react of contextual call component broke the Jitsi "click to join" messages. The issue being after 10 seconds of initiating the call, the message "click to join" always returned "Call Ended" even if the call was still going on.
This was due to the fact that after closing the contextual bar, the react component gets unmounted and we are not able to keep track of ongoing call and increase jitsi room timeout.
This PR solves this issue by using the setInterval methods on component will unmount. When the call component unmounts, we keep on checking the state of jitsi call and based on conditions increase the jitsi room timeout. After the call is ended all setInterval calls are closed.
This PR also removes the implementation of HEARTBEAT events of JitsiBridge. This is because this is no longer needed and all logic is being taken care of by the unmount function.
Issue(s)
#21055
Steps to test or reproduce
Further comments