summaryrefslogtreecommitdiffstats
path: root/web/react/components/sidebar.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-07-10 20:24:18 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-07-10 20:24:18 +0500
commit14395689ca33edb6104b4c9e71d07847f196285e (patch)
tree7c01431e2119acf6a37f4a7d760210d8c841b137 /web/react/components/sidebar.jsx
parent53d0420e2436e203e8467f22ea066ea13b2bce41 (diff)
parentff128d7c161ead05d0cd7cc6dbbe2dbdd06259e1 (diff)
downloadchat-14395689ca33edb6104b4c9e71d07847f196285e.tar.gz
chat-14395689ca33edb6104b4c9e71d07847f196285e.tar.bz2
chat-14395689ca33edb6104b4c9e71d07847f196285e.zip
Merge branch 'master' of https://github.com/mattermost/platform
Diffstat (limited to 'web/react/components/sidebar.jsx')
-rw-r--r--web/react/components/sidebar.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index 0e4d38fe0..2095978e8 100644
--- a/web/react/components/sidebar.jsx
+++ b/web/react/components/sidebar.jsx
@@ -263,6 +263,10 @@ var SidebarLoggedIn = React.createClass({
if (ChannelStore.getCurrentId() != msg.channel_id) {
AsyncClient.getChannels(true);
}
+ } else if (msg.action == "user_added") {
+ if (UserStore.getCurrentId() === msg.user_id) {
+ AsyncClient.getChannels(true);
+ }
}
},
updateTitle: function() {