Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
[RN] Remove unncessary characters from the invite URL
Lyubo Marinov1748049322e0
diff --git a/react/features/base/connection/functions.js b/react/features/base/connection/functions.jsindex a188041a84..a6805651f2 100644--- a/react/features/base/connection/functions.js+++ b/react/features/base/connection/functions.js@@ -35,10 +35,21 @@ export function getURLWithoutParams(url: URL): URL {const { hash, search } = url;if ((hash && hash.length > 1) || (search && search.length > 1)) {- // eslint-disable-next-line no-param-reassign- url = new URL(url.href);+ url = new URL(url.href); // eslint-disable-line no-param-reassignurl.hash = '';url.search = '';++ // XXX The implementation of URL at least on React Native appends ? and+ // # at the end of the href which is not desired.+ let { href } = url;++ if (href) {+ href.endsWith('#') && (href = href.substring(0, href.length - 1));+ href.endsWith('?') && (href = href.substring(0, href.length - 1));++ // eslint-disable-next-line no-param-reassign+ url.href === href || (url = new URL(href));+ }}return url;