PLT-6759 Show deactivated users in GMs (#6703)

* Show deactivated users in GMs

* Fix runtime error when DMing deactivated user
Этот коммит содержится в:
Joram Wilander
2017-06-22 06:36:46 -04:00
коммит произвёл George Goldberg
родитель ac4e9909fa
Коммит 3f1fca9463
6 изменённых файлов: 52 добавлений и 11 удалений

Просмотреть файл

@@ -73,7 +73,7 @@ export default class ChannelHeader extends React.Component {
getStateFromStores() {
const channel = ChannelStore.get(this.props.channelId);
const stats = ChannelStore.getStats(this.props.channelId);
const users = UserStore.getProfileListInChannel(this.props.channelId);
const users = UserStore.getProfileListInChannel(this.props.channelId, false, true);
let otherUserId = null;
if (channel && channel.type === 'D') {
@@ -227,7 +227,7 @@ export default class ChannelHeader extends React.Component {
AppDispatcher.handleViewAction({
type: ActionTypes.TOGGLE_DM_MODAL,
value: true,
startingUsers: UserStore.getProfileListInChannel(this.props.channelId, true)
startingUsers: UserStore.getProfileListInChannel(this.props.channelId, true, false)
});
}