From 92642bab6852d02e6b58f881ac909788299d0c5c Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 1 Nov 2016 11:13:33 -0400 Subject: Load channel members with channels to make sure we have latest unread counts (#4389) --- webapp/components/navbar.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webapp/components/navbar.jsx') 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); } -- cgit v1.2.3-1-g7c22