summaryrefslogtreecommitdiffstats
path: root/webapp/actions/channel_actions.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-04-07 14:21:31 -0400
committerGeorge Goldberg <george@gberg.me>2017-04-07 19:21:31 +0100
commit86fbd496af8ff646bcff8484ad1733101333e8c6 (patch)
tree894e300dd9555fd3a2313f1c4f2ec628cd3edc07 /webapp/actions/channel_actions.jsx
parent9318ffcdf3caf77d66e0b9fc7967d9de9ea99b4b (diff)
downloadchat-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/actions/channel_actions.jsx')
-rw-r--r--webapp/actions/channel_actions.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx
index acbc943cf..ea2039047 100644
--- a/webapp/actions/channel_actions.jsx
+++ b/webapp/actions/channel_actions.jsx
@@ -300,7 +300,7 @@ export function loadDMsAndGMsForUnreads() {
if (unreads[id].msgs > 0 || unreads[id].mentions > 0) {
const channel = ChannelStore.get(id);
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);
}