forked from Ivasoft/mattermost-mobile
Use of cached managed config in components (#2758)
This commit is contained in:
@@ -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'});
|
||||
|
||||
Reference in New Issue
Block a user