diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-04-07 14:21:31 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-04-07 19:21:31 +0100 |
commit | 86fbd496af8ff646bcff8484ad1733101333e8c6 (patch) | |
tree | 894e300dd9555fd3a2313f1c4f2ec628cd3edc07 /webapp/routes/route_team.jsx | |
parent | 9318ffcdf3caf77d66e0b9fc7967d9de9ea99b4b (diff) | |
download | chat-86fbd496af8ff646bcff8484ad1733101333e8c6.tar.gz chat-86fbd496af8ff646bcff8484ad1733101333e8c6.tar.bz2 chat-86fbd496af8ff646bcff8484ad1733101333e8c6.zip |
Check if we need to add DM/GM to sidebar regardless of post sender (#6009)
Diffstat (limited to 'webapp/routes/route_team.jsx')
-rw-r--r-- | webapp/routes/route_team.jsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webapp/routes/route_team.jsx b/webapp/routes/route_team.jsx index ff865989a..d8350a3c7 100644 --- a/webapp/routes/route_team.jsx +++ b/webapp/routes/route_team.jsx @@ -13,7 +13,6 @@ import AppDispatcher from 'dispatcher/app_dispatcher.jsx'; import Constants from 'utils/constants.jsx'; const ActionTypes = Constants.ActionTypes; import * as AsyncClient from 'utils/async_client.jsx'; -import * as Utils from 'utils/utils.jsx'; import Client from 'client/web_client.jsx'; import ChannelStore from 'stores/channel_store.jsx'; import BrowserStore from 'stores/browser_store.jsx'; @@ -35,7 +34,7 @@ function doChannelChange(state, replace, callback) { channel = ChannelStore.getByName(state.params.channel); if (channel && channel.type === Constants.DM_CHANNEL) { - loadNewDMIfNeeded(Utils.getUserIdFromChannelName(channel)); + loadNewDMIfNeeded(channel.id); } else if (channel && channel.type === Constants.GM_CHANNEL) { loadNewGMIfNeeded(channel.id); } |