diff options
Diffstat (limited to 'webapp/components/sidebar.jsx')
-rw-r--r-- | webapp/components/sidebar.jsx | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx index 4ab8b6b40..4ce89d37c 100644 --- a/webapp/components/sidebar.jsx +++ b/webapp/components/sidebar.jsx @@ -124,8 +124,6 @@ export default class Sidebar extends React.Component { directChannels.sort(this.sortChannelsByDisplayName); - const hiddenDirectChannelCount = UserStore.getActiveOnlyProfileList(true).length - directChannels.length; - const tutorialStep = PreferenceStore.getInt(Preferences.TUTORIAL_STEP, UserStore.getCurrentId(), 999); return { @@ -134,7 +132,6 @@ export default class Sidebar extends React.Component { publicChannels, privateChannels, directChannels, - hiddenDirectChannelCount, unreadCounts: JSON.parse(JSON.stringify(ChannelStore.getUnreadCounts())), showTutorialTip: tutorialStep === TutorialSteps.CHANNEL_POPOVER, currentTeam: TeamStore.getCurrent(), @@ -527,25 +524,19 @@ export default class Sidebar extends React.Component { } head.appendChild(link); - var directMessageMore = null; - if (this.state.hiddenDirectChannelCount > 0) { - directMessageMore = ( - <li key='more'> - <a - href='#' - onClick={this.showMoreDirectChannelsModal} - > - <FormattedMessage - id='sidebar.more' - defaultMessage='More ({count})' - values={{ - count: this.state.hiddenDirectChannelCount - }} - /> - </a> - </li> - ); - } + var directMessageMore = ( + <li key='more'> + <a + href='#' + onClick={this.showMoreDirectChannelsModal} + > + <FormattedMessage + id='sidebar.more' + defaultMessage='More' + /> + </a> + </li> + ); let showChannelModal = false; if (this.state.newChannelModalType !== '') { |