Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mattermost-webapp
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
1
Merge Requests
1
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
sysadmin
mattermost
mattermost-webapp
Commits
85c0394a
Commit
85c0394a
authored
Dec 06, 2018
by
Jordi Mallach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete remove mobile redirection.
The build now fails with the simple, unindented if block.
parent
da70116c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
components/root/root.jsx
components/root/root.jsx
+0
-20
No files found.
components/root/root.jsx
View file @
85c0394a
...
...
@@ -10,9 +10,7 @@ import FastClick from 'fastclick';
import
{
Route
,
Switch
,
Redirect
}
from
'
react-router-dom
'
;
import
{
setUrl
}
from
'
mattermost-redux/actions/general
'
;
import
{
setSystemEmojis
}
from
'
mattermost-redux/actions/emojis
'
;
import
{
getConfig
}
from
'
mattermost-redux/selectors/entities/general
'
;
import
*
as
UserAgent
from
'
utils/user_agent.jsx
'
;
import
{
EmojiIndicesByAlias
}
from
'
utils/emoji.jsx
'
;
import
{
trackLoadTime
}
from
'
actions/diagnostics_actions.jsx
'
;
import
*
as
GlobalActions
from
'
actions/global_actions.jsx
'
;
...
...
@@ -197,24 +195,6 @@ export default class Root extends React.Component {
}
loadRecentlyUsedCustomEmojis
()(
store
.
dispatch
,
store
.
getState
);
const
iosDownloadLink
=
getConfig
(
store
.
getState
()).
IosAppDownloadLink
;
const
androidDownloadLink
=
getConfig
(
store
.
getState
()).
AndroidAppDownloadLink
;
const
toResetPasswordScreen
=
this
.
props
.
location
.
pathname
===
'
/reset_password_complete
'
;
// Remove any redirects - the mobile apps do no work with the instance
// XXX: Should we make this a proper option/toggle somewhere.
if
(
false
)
{
// redirect to the mobile landing page if the user hasn't seen it before
if
(
iosDownloadLink
&&
UserAgent
.
isIosWeb
()
&&
!
BrowserStore
.
hasSeenLandingPage
()
&&
!
toResetPasswordScreen
)
{
this
.
props
.
history
.
push
(
'
/get_ios_app?redirect_to=
'
+
encodeURIComponent
(
this
.
props
.
location
.
pathname
)
+
encodeURIComponent
(
this
.
props
.
location
.
search
));
BrowserStore
.
setLandingPageSeen
(
true
);
}
else
if
(
androidDownloadLink
&&
UserAgent
.
isAndroidWeb
()
&&
!
BrowserStore
.
hasSeenLandingPage
()
&&
!
toResetPasswordScreen
)
{
this
.
props
.
history
.
push
(
'
/get_android_app?redirect_to=
'
+
encodeURIComponent
(
this
.
props
.
location
.
pathname
)
+
encodeURIComponent
(
this
.
props
.
location
.
search
));
BrowserStore
.
setLandingPageSeen
(
true
);
}
}
}
redirectIfNecessary
=
(
props
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment