diff --git a/app/components/channel_intro/channel_intro.js b/app/components/channel_intro/channel_intro.js index ff20b6796..bee1cc7ba 100644 --- a/app/components/channel_intro/channel_intro.js +++ b/app/components/channel_intro/channel_intro.js @@ -306,8 +306,9 @@ class ChannelIntro extends PureComponent { }; render() { - const {isLoadingPosts, theme} = this.props; + const {currentChannel, isLoadingPosts, theme} = this.props; const style = getStyleSheet(theme); + const channelType = currentChannel.type; if (isLoadingPosts) { return ( @@ -317,14 +318,23 @@ class ChannelIntro extends PureComponent { ); } + let profiles; + if (channelType === General.DM_CHANNEL || channelType === General.GM_CHANNEL) { + profiles = ( + + + {this.buildProfiles()} + + + {this.buildNames()} + + + ); + } + return ( - - {this.buildProfiles()} - - - {this.buildNames()} - + {profiles} {this.buildContent()}