mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-20 10:28:15 +00:00
* Switch pullOutImages to use a NodeWalker * Add markdown transformer to combine adjacent text nodes * MM-5957 Add mention highlighting on mobile
21 lines
689 B
JavaScript
21 lines
689 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
|
|
import {getAutolinkedUrlSchemes} from 'mattermost-redux/selectors/entities/general';
|
|
import {getTheme} from 'mattermost-redux/selectors/entities/preferences';
|
|
import {getCurrentUserMentionKeys} from 'mattermost-redux/selectors/entities/users';
|
|
|
|
import Markdown from './markdown';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
autolinkedUrlSchemes: getAutolinkedUrlSchemes(state),
|
|
mentionKeys: getCurrentUserMentionKeys(state),
|
|
theme: getTheme(state),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(Markdown);
|