Skip to content

Commit

Permalink
[MM-24035] Fix getDeactivatedChannel selector for DM channel (matterm…
Browse files Browse the repository at this point in the history
…ost#5301)

* MM-24035 Fix DM with deactivated user

* Remove users
  • Loading branch information
fmunshi committed Apr 9, 2020
1 parent 25e96a1 commit b958be4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/channel_view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ import ChannelView from './channel_view.jsx';

// Temporary selector until getDirectTeammate is converted to be redux-friendly
const getDeactivatedChannel = createSelector(
(state) => state.entities.users.profiles,
(state, channelId) => {
return getDirectTeammate(state, channelId);
},
(users, channelId, teammate) => {
(teammate) => {
return Boolean(teammate && teammate.delete_at);
}
);
Expand Down

0 comments on commit b958be4

Please sign in to comment.