diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-07-18 06:27:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-18 06:27:29 +0800 |
commit | 41969ae66c2d140b004e6dbced597749f34aedf8 (patch) | |
tree | ea4fc4e53ec9c356e6a7031f516ca13b667b94b2 /webapp/components/more_direct_channels | |
parent | 3e090162aaac7cbc75900635b800d96e9e9050e3 (diff) | |
download | chat-41969ae66c2d140b004e6dbced597749f34aedf8.tar.gz chat-41969ae66c2d140b004e6dbced597749f34aedf8.tar.bz2 chat-41969ae66c2d140b004e6dbced597749f34aedf8.zip |
[PLT-7141] Fix deactivated user from appearing in channel view members list filtering (#6957)
* fix deactivated user from appearing in channel view members list filtering
* add deactivated user filters to channels, teams and DM
Diffstat (limited to 'webapp/components/more_direct_channels')
-rw-r--r-- | webapp/components/more_direct_channels/more_direct_channels.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/more_direct_channels/more_direct_channels.jsx b/webapp/components/more_direct_channels/more_direct_channels.jsx index 705c1ac95..0e50eca72 100644 --- a/webapp/components/more_direct_channels/more_direct_channels.jsx +++ b/webapp/components/more_direct_channels/more_direct_channels.jsx @@ -292,6 +292,11 @@ export default class MoreDirectChannels extends React.Component { /> ); + let users = []; + if (this.state.users) { + users = this.state.users.filter((user) => user.delete_at === 0); + } + return ( <Modal dialogClassName={'more-modal more-direct-channels'} @@ -310,7 +315,7 @@ export default class MoreDirectChannels extends React.Component { <Modal.Body> <MultiSelect key='moreDirectChannelsList' - options={this.state.users} + options={users} optionRenderer={this.renderOption} values={this.state.values} valueRenderer={this.renderValue} |