diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-11-01 11:13:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 11:13:33 -0400 |
commit | 92642bab6852d02e6b58f881ac909788299d0c5c (patch) | |
tree | 9c54d4c54bc29a488a34e659a3b75b3d2105ce03 /webapp/components/navbar.jsx | |
parent | 9bae1f7e9308be8c7084f73e6b897dde24aad717 (diff) | |
download | chat-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.jsx | 3 |
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); } |