From 41969ae66c2d140b004e6dbced597749f34aedf8 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Tue, 18 Jul 2017 06:27:29 +0800 Subject: [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 --- webapp/components/add_users_to_team/add_users_to_team.jsx | 7 ++++++- webapp/components/channel_invite_modal/channel_invite_modal.jsx | 7 ++++++- webapp/components/member_list_channel/member_list_channel.jsx | 2 +- webapp/components/more_direct_channels/more_direct_channels.jsx | 7 ++++++- 4 files changed, 19 insertions(+), 4 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/add_users_to_team/add_users_to_team.jsx b/webapp/components/add_users_to_team/add_users_to_team.jsx index 19e0d674b..e3eb8477b 100644 --- a/webapp/components/add_users_to_team/add_users_to_team.jsx +++ b/webapp/components/add_users_to_team/add_users_to_team.jsx @@ -215,6 +215,11 @@ export default class AddUsersToTeam extends React.Component { /> ); + let users = []; + if (this.state.users) { + users = this.state.users.filter((user) => user.delete_at === 0); + } + return ( {this.state.inviteError}); } + let users = []; + if (this.state.users) { + users = this.state.users.filter((user) => user.delete_at === 0); + } + let content; if (this.state.loading) { content = (); } else { content = ( ); + let users = []; + if (this.state.users) { + users = this.state.users.filter((user) => user.delete_at === 0); + } + return (