Skip to content

Commit

Permalink
Don't show mobile guide if deep linking
Browse files Browse the repository at this point in the history
Other part of #7378
  • Loading branch information
dbkr authored and bwindels committed Oct 1, 2018
1 parent a2c7ef5 commit 2a8c7b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2a8c7b2

Please sign in to comment.