diff options
Diffstat (limited to 'webapp/components/more_direct_channels.jsx')
-rw-r--r-- | webapp/components/more_direct_channels.jsx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/webapp/components/more_direct_channels.jsx b/webapp/components/more_direct_channels.jsx index 7e57261b6..7c61d2f2e 100644 --- a/webapp/components/more_direct_channels.jsx +++ b/webapp/components/more_direct_channels.jsx @@ -34,13 +34,11 @@ export default class MoreDirectChannels extends React.Component { this.toggleList = this.toggleList.bind(this); this.nextPage = this.nextPage.bind(this); this.search = this.search.bind(this); - this.loadComplete = this.loadComplete.bind(this); this.state = { - users: UserStore.getProfileListInTeam(TeamStore.getCurrentId(), true, true), + users: null, loadingDMChannel: -1, listType: 'team', - loading: false, search: false }; } @@ -62,10 +60,6 @@ export default class MoreDirectChannels extends React.Component { TeamStore.removeChangeListener(this.onChange); } - loadComplete() { - this.setState({loading: false}); - } - handleHide() { if (this.props.onModalDismissed) { this.props.onModalDismissed(); @@ -229,11 +223,6 @@ export default class MoreDirectChannels extends React.Component { ); } - let users = this.state.users; - if (this.state.loading) { - users = null; - } - return ( <Modal dialogClassName='more-modal more-direct-channels' @@ -254,7 +243,7 @@ export default class MoreDirectChannels extends React.Component { <SearchableUserList key={'moreDirectChannelsList_' + this.state.listType} style={{maxHeight}} - users={users} + users={this.state.users} usersPerPage={USERS_PER_PAGE} nextPage={this.nextPage} search={this.search} |