summaryrefslogtreecommitdiffstats
path: root/webapp/components/navbar.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-11-01 11:13:33 -0400
committerGitHub <noreply@github.com>2016-11-01 11:13:33 -0400
commit92642bab6852d02e6b58f881ac909788299d0c5c (patch)
tree9c54d4c54bc29a488a34e659a3b75b3d2105ce03 /webapp/components/navbar.jsx
parent9bae1f7e9308be8c7084f73e6b897dde24aad717 (diff)
downloadchat-92642bab6852d02e6b58f881ac909788299d0c5c.tar.gz
chat-92642bab6852d02e6b58f881ac909788299d0c5c.tar.bz2
chat-92642bab6852d02e6b58f881ac909788299d0c5c.zip
Load channel members with channels to make sure we have latest unread counts (#4389)
Diffstat (limited to 'webapp/components/navbar.jsx')
-rw-r--r--webapp/components/navbar.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx
index cf671e64f..4a06d8914 100644
--- a/webapp/components/navbar.jsx
+++ b/webapp/components/navbar.jsx
@@ -115,7 +115,8 @@ export default class Navbar extends React.Component {
Client.leaveChannel(channelId,
() => {
- AsyncClient.getChannels(true);
+ ChannelActions.loadChannelsForCurrentUser();
+
if (this.state.isFavorite) {
ChannelActions.unmarkFavorite(channelId);
}