From 3f1fca9463df27e8f795356ab6873d0d5bf4d634 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 22 Jun 2017 06:36:46 -0400 Subject: PLT-6759 Show deactivated users in GMs (#6703) * Show deactivated users in GMs * Fix runtime error when DMing deactivated user --- webapp/stores/user_store.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp/stores') diff --git a/webapp/stores/user_store.jsx b/webapp/stores/user_store.jsx index b6e867443..79052d77e 100644 --- a/webapp/stores/user_store.jsx +++ b/webapp/stores/user_store.jsx @@ -390,10 +390,10 @@ class UserStoreClass extends EventEmitter { }); } - getProfileListInChannel(channelId = ChannelStore.getCurrentId(), skipCurrent = false) { + getProfileListInChannel(channelId = ChannelStore.getCurrentId(), skipCurrent = false, skipInactive = false) { const userIds = Array.from(Selectors.getUserIdsInChannels(store.getState())[channelId] || []); - return this.getProfileListForIds(userIds, skipCurrent, false); + return this.getProfileListForIds(userIds, skipCurrent, skipInactive); } saveProfileNotInChannel(channelId = ChannelStore.getCurrentId(), profile) { -- cgit v1.2.3-1-g7c22