Use of cached managed config in components (#2758)

This commit is contained in:
Elias Nahum
2019-05-01 18:34:09 -04:00
parent 55d029bde3
commit 584efe2b12
11 changed files with 34 additions and 164 deletions

View File

@@ -82,7 +82,7 @@ export default class MarkdownCodeBlock extends React.PureComponent {
handleLongPress = async () => {
const {formatMessage} = this.context.intl;
const config = await mattermostManaged.getLocalConfig();
const config = mattermostManaged.getCachedConfig();
if (config.copyAndPasteProtection !== 'true') {
const cancelText = formatMessage({id: 'mobile.post.cancel', defaultMessage: 'Cancel'});