From 894e31fe73b50cc34187be00bd1e7d6246044a61 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 28 Sep 2018 11:23:46 +0100 Subject: [PATCH] Don't show mobile guide if deep linking Other part of https://github.com/vector-im/riot-web/issues/7378 --- src/vector/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vector/index.js b/src/vector/index.js index ff6b12856c..1d873f2081 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -251,7 +251,9 @@ async function loadApp() { // don't try to redirect to the native apps if we're // verifying a 3pid (but after we've loaded the config) - const preventRedirect = Boolean(fragparts.params.client_secret); + // or if the user is following a deep link + // (https://github.com/vector-im/riot-web/issues/7378) + const preventRedirect = fragparts.params.client_secret || fragparts.location.length > 0; if (!preventRedirect) { const isIos = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;