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] Fix passing url prop to Root and App components
Lyubo Marinov61fd4e4ce402
diff --git a/react/features/app/components/AbstractApp.js b/react/features/app/components/AbstractApp.jsindex 2f985aab19..699639d32a 100644--- a/react/features/app/components/AbstractApp.js+++ b/react/features/app/components/AbstractApp.js@@ -138,9 +138,11 @@ export class AbstractApp extends Component {});}- // Deal with URL changes- if (typeof nextProps.url !== 'undefined') {- this._openURL(nextProps.url || this._getDefaultURL());+ // Deal with URL changes.+ const { url } = nextProps;++ if (this.props.url !== url) {+ this._openURL(url || this._getDefaultURL());}}diff --git a/react/index.native.js b/react/index.native.jsindex 88a5c4e6e6..3617bc399f 100644--- a/react/index.native.js+++ b/react/index.native.js@@ -56,8 +56,8 @@ class Root extends Component {url: this.props.url};- // Handle the URL the application was launched with, but props have- // precedence.+ // Handle the URL, if any, with which the app was launched. But props+ // have precedence.if (typeof this.props.url === 'undefined') {Linking.getInitialURL().then(url => this.setState({ url }))@@ -79,8 +79,10 @@ class Root extends Component {** @inheritdoc*/- componentWillReceiveProps(nextProps) {- this.setState({ url: nextProps.url || null });+ componentWillReceiveProps({ url }) {+ if (this.props.url !== url) {+ this.setState({ url: url || null });+ }}/**