Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

ref(deep-linking): set initial state in constructor

Leonard Kimc288d0e18c37
diff --git a/react/features/deep-linking/components/DeepLinkingMobilePage.web.js b/react/features/deep-linking/components/DeepLinkingMobilePage.web.js
index 230c0484af..a5f117147e 100644
--- a/react/features/deep-linking/components/DeepLinkingMobilePage.web.js
+++ b/react/features/deep-linking/components/DeepLinkingMobilePage.web.js
@@ -81,23 +81,15 @@ class DeepLinkingMobilePage extends Component<Props, State> {
constructor(props: Props) {
super(props);
+ this.state = {
+ joinURL: generateDeepLinkingURL()
+ };
+
// Bind event handlers so they are only bound once per instance.
this._onDownloadApp = this._onDownloadApp.bind(this);
this._onOpenApp = this._onOpenApp.bind(this);
}
- /**
- * Initializes the text and URL of the `Start a conference` / `Join the
- * conversation` button which takes the user to the mobile app.
- *
- * @inheritdoc
- */
- componentWillMount() {
- this.setState({
- joinURL: generateDeepLinkingURL()
- });
- }
-
/**
* Implements the Component's componentDidMount method.
*