From 55752fb359f805196e9acc1497cee658d30fa6ed Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 27 Feb 2017 18:50:30 -0300 Subject: Fix channel created WS event (#5552) --- webapp/actions/websocket_actions.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webapp/actions') 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); } } -- cgit v1.2.3-1-g7c22