Skip to content

[IMPROVE] Open Jitsi call even if server isn't found#3442

Merged
diegolmello merged 6 commits intodevelopfrom
fix/open-jitsi-SDK
Nov 16, 2021
Merged

[IMPROVE] Open Jitsi call even if server isn't found#3442
diegolmello merged 6 commits intodevelopfrom
fix/open-jitsi-SDK

Conversation

@AlexAlexandre
Copy link
Contributor

@AlexAlexandre AlexAlexandre commented Oct 15, 2021

Proposed changes

The purpose of this PR is to implement a new flow for Jitsi Meetings.
Today, the mobile app can only open meeting rooms from known servers. When we tap a Jitsi URL or the app is opened from deep link, we use the Jitsi URL pattern to identify the server, connect to it and only then we open the call.

A new flow was requested to open Jitsi meetings even we do not find the server.

Issue(s)

N/A

How to test or reproduce

To test the new behaviour, will be necessary create a Jitsi meet with a random url, for example https://jitsi.rocket.chat/test-call, Send as a link on a chat, tap this link and then a meeting room should open normally.

For a regression test, try opening some normal meeting rooms, for example:

  • open a chat -> tap on top menu to open the action screen:
    • try to make a voice call;
    • try to make a video call;

everything needs works normally

Screenshots

Before

jetsiMeeting-before.mov

After

jetsiMeeting-after.mov

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • 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

Further comments

N/A

@AlexAlexandre AlexAlexandre marked this pull request as ready for review October 15, 2021 20:37
@AlexAlexandre AlexAlexandre self-assigned this Oct 15, 2021
@AlexAlexandre AlexAlexandre changed the title feat: implementing ability to call with Jitsi without a server. [IMPROVE] Open Jitsi SDK even if the URL doesn't follow Rocket.Chat pattern Oct 15, 2021
logEvent(events.RA_JITSI_VIDEO);
const { Jitsi_Domain, Jitsi_SSL } = reduxStore.getState().settings;
const protocol = Jitsi_SSL ? 'https://' : 'http://';
const url = `${protocol}${Jitsi_Domain}/${path}`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk about this one.
The goal of the PR is to do a fallback, but here we're assuming they're on the right server, which might not be the case.

Example:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! I didn't know that was possible.
To do that, I needed to pass the full url to the deepLinking function, today we pass just the path.
with the full url, I just call the function to open the meeting.

What do you think about this solution ?

@diegolmello diegolmello changed the title [IMPROVE] Open Jitsi SDK even if the URL doesn't follow Rocket.Chat pattern [IMPROVE] Open Jitsi call even if server isn't found Nov 10, 2021
@diegolmello diegolmello merged commit 251b42c into develop Nov 16, 2021
@diegolmello diegolmello deleted the fix/open-jitsi-SDK branch November 16, 2021 16:04
ivnxyz pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments