summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2017-02-27 18:50:30 -0300
committerGitHub <noreply@github.com>2017-02-27 18:50:30 -0300
commit55752fb359f805196e9acc1497cee658d30fa6ed (patch)
treee267b44d1c658bfececfd91589b619233f329705 /webapp
parentf07571d79de1c00529136cd74c075ddfc4784b41 (diff)
downloadchat-55752fb359f805196e9acc1497cee658d30fa6ed.tar.gz
chat-55752fb359f805196e9acc1497cee658d30fa6ed.tar.bz2
chat-55752fb359f805196e9acc1497cee658d30fa6ed.zip
Fix channel created WS event (#5552)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/websocket_actions.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index e6403839d..c181a5e3a 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -286,8 +286,9 @@ function handleUserUpdatedEvent(msg) {
function handleChannelCreatedEvent(msg) {
const channelId = msg.data.channel_id;
+ const teamId = msg.data.team_id;
- if (!ChannelStore.getChannelById(channelId)) {
+ if (TeamStore.getCurrentId() === teamId && !ChannelStore.getChannelById(channelId)) {
AsyncClient.getChannel(channelId);
}
}