summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_post.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-08-04 14:05:33 -0400
committerChristopher Speller <crspeller@gmail.com>2017-08-04 11:05:33 -0700
commitfb2022fb1cb3c8023efd22316d570d9b26facbd1 (patch)
treed70450ccfc3bfed2d10c6bfcb943ddda164d9882 /webapp/components/create_post.jsx
parent399865923658319d6d12a7719bc3b5554218bbad (diff)
downloadchat-fb2022fb1cb3c8023efd22316d570d9b26facbd1.tar.gz
chat-fb2022fb1cb3c8023efd22316d570d9b26facbd1.tar.bz2
chat-fb2022fb1cb3c8023efd22316d570d9b26facbd1.zip
PLT-6924 Added ability to disable file uploads/downloads on old mobile apps (#7117)
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r--webapp/components/create_post.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx
index f822f46f4..55d6884ac 100644
--- a/webapp/components/create_post.jsx
+++ b/webapp/components/create_post.jsx
@@ -28,6 +28,7 @@ import TeamStore from 'stores/team_store.jsx';
import ConfirmModal from './confirm_modal.jsx';
import Constants from 'utils/constants.jsx';
+import * as FileUtils from 'utils/file_utils';
import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
import {browserHistory} from 'react-router/es6';
@@ -710,7 +711,7 @@ export default class CreatePost extends React.Component {
}
let attachmentsDisabled = '';
- if (global.window.mm_config.EnableFileAttachments === 'false') {
+ if (!FileUtils.canUploadFiles()) {
attachmentsDisabled = ' post-create--attachment-disabled';
}