From 923de17b91affb2750f76d8e29c62472e2e58916 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 24 Jul 2018 16:10:46 +0100 Subject: [PATCH] allow passing initial is_url like hs_url in query params Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/MatrixChat.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index e0bbf50d5a..2a6de91c80 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -282,6 +282,14 @@ export default React.createClass({ register_hs_url: paramHs, }); } + // Set a default IS with query param `is_url` + const paramIs = this.props.startingFragmentQueryParams.is_url; + if (paramIs) { + console.log('Setting register_is_url ', paramIs); + this.setState({ + register_is_url: paramIs, + }); + } // a thing to call showScreen with once login completes. this is kept // outside this.state because updating it should never trigger a