diff options
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/components/post_message_container.jsx | 5 | ||||
-rw-r--r-- | webapp/components/post_view/components/post_message_view.jsx | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/webapp/components/post_view/components/post_message_container.jsx b/webapp/components/post_view/components/post_message_container.jsx index 749af4ecc..00d0097ca 100644 --- a/webapp/components/post_view/components/post_message_container.jsx +++ b/webapp/components/post_view/components/post_message_container.jsx @@ -7,6 +7,7 @@ import ChannelStore from 'stores/channel_store.jsx'; import EmojiStore from 'stores/emoji_store.jsx'; import PreferenceStore from 'stores/preference_store.jsx'; import {Preferences} from 'utils/constants.jsx'; +import TeamStore from 'stores/team_store.jsx'; import UserStore from 'stores/user_store.jsx'; import PostMessageView from './post_message_view.jsx'; @@ -37,7 +38,8 @@ export default class PostMessageContainer extends React.Component { enableFormatting: PreferenceStore.getBool(Preferences.CATEGORY_ADVANCED_SETTINGS, 'formatting', true), mentionKeys, usernameMap: UserStore.getProfilesUsernameMap(), - channelNamesMap: ChannelStore.getChannelNamesMap() + channelNamesMap: ChannelStore.getChannelNamesMap(), + team: TeamStore.getCurrent() }; } @@ -95,6 +97,7 @@ export default class PostMessageContainer extends React.Component { mentionKeys={this.state.mentionKeys} usernameMap={this.state.usernameMap} channelNamesMap={this.state.channelNamesMap} + team={this.state.team} /> ); } diff --git a/webapp/components/post_view/components/post_message_view.jsx b/webapp/components/post_view/components/post_message_view.jsx index 5242e6648..24f96a8d9 100644 --- a/webapp/components/post_view/components/post_message_view.jsx +++ b/webapp/components/post_view/components/post_message_view.jsx @@ -14,7 +14,8 @@ export default class PostMessageView extends React.Component { enableFormatting: React.PropTypes.bool.isRequired, mentionKeys: React.PropTypes.arrayOf(React.PropTypes.string).isRequired, usernameMap: React.PropTypes.object.isRequired, - channelNamesMap: React.PropTypes.object.isRequired + channelNamesMap: React.PropTypes.object.isRequired, + team: React.PropTypes.object.isRequired }; shouldComponentUpdate(nextProps) { @@ -56,7 +57,8 @@ export default class PostMessageView extends React.Component { siteURL: Utils.getSiteURL(), mentionKeys: this.props.mentionKeys, usernameMap: this.props.usernameMap, - channelNamesMap: this.props.channelNamesMap + channelNamesMap: this.props.channelNamesMap, + team: this.props.team }); return ( |