summaryrefslogtreecommitdiffstats
path: root/webapp/components/sidebar_header_dropdown.jsx
diff options
context:
space:
mode:
authorHyeseong Kim <cometkim.kr@gmail.com>2017-01-04 07:15:16 +0900
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-03 17:15:16 -0500
commit7ee1fec6bf21ab3fb63740c94cc92c2317a0092e (patch)
tree00673758c436698d77e9f32f0cd8a06cf696c3c4 /webapp/components/sidebar_header_dropdown.jsx
parent3bc7445322623028bad633a58668abe7b3eefe8c (diff)
downloadchat-7ee1fec6bf21ab3fb63740c94cc92c2317a0092e.tar.gz
chat-7ee1fec6bf21ab3fb63740c94cc92c2317a0092e.tar.bz2
chat-7ee1fec6bf21ab3fb63740c94cc92c2317a0092e.zip
Fix isMobileApp() to also apply to Android app (#4892)
* Fix isMobileApp() to also apply to Android app * Add checking agent to LHS download app link
Diffstat (limited to 'webapp/components/sidebar_header_dropdown.jsx')
-rw-r--r--webapp/components/sidebar_header_dropdown.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/sidebar_header_dropdown.jsx b/webapp/components/sidebar_header_dropdown.jsx
index ad0a6e4c6..826d9a342 100644
--- a/webapp/components/sidebar_header_dropdown.jsx
+++ b/webapp/components/sidebar_header_dropdown.jsx
@@ -3,6 +3,7 @@
import $ from 'jquery';
import ReactDOM from 'react-dom';
+import * as UserAgent from 'utils/user_agent.jsx';
import * as Utils from 'utils/utils.jsx';
import * as GlobalActions from 'actions/global_actions.jsx';
@@ -412,7 +413,7 @@ export default class SidebarHeaderDropdown extends React.Component {
let nativeAppDivider = null;
let nativeAppLink = null;
- if (global.window.mm_config.AppDownloadLink) {
+ if (global.window.mm_config.AppDownloadLink && !UserAgent.isMobileApp()) {
nativeAppDivider = <li className='divider'/>;
nativeAppLink = (
<li>