summaryrefslogtreecommitdiffstats
path: root/web/react/components/channel_header.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-08 09:48:45 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-08 10:54:27 -0400
commit70144962522a5d8db1c46cbd93d83e64b8ca778b (patch)
treef40c143270fab3c7079b596610a9b20d79dc9b65 /web/react/components/channel_header.jsx
parentc189e2bb7681ba01edc9b8c5accd90b94c898d0a (diff)
downloadchat-70144962522a5d8db1c46cbd93d83e64b8ca778b.tar.gz
chat-70144962522a5d8db1c46cbd93d83e64b8ca778b.tar.bz2
chat-70144962522a5d8db1c46cbd93d83e64b8ca778b.zip
Fixing ability to dynamicly update members list.
Diffstat (limited to 'web/react/components/channel_header.jsx')
-rw-r--r--web/react/components/channel_header.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx
index f15974d35..92f60ea86 100644
--- a/web/react/components/channel_header.jsx
+++ b/web/react/components/channel_header.jsx
@@ -58,7 +58,9 @@ export default class ChannelHeader extends React.Component {
$('.channel-header__info .description').popover({placement: 'bottom', trigger: 'hover', html: true, delay: {show: 500, hide: 500}});
}
onSocketChange(msg) {
- if (msg.action === 'new_user') {
+ if (msg.action === 'new_user' ||
+ msg.action === 'user_added' ||
+ (msg.action === 'user_removed' && msg.user_id !== UserStore.getCurrentId())) {
AsyncClient.getChannelExtraInfo(true);
}
}