diff options
Diffstat (limited to 'webapp/actions')
-rw-r--r-- | webapp/actions/websocket_actions.jsx | 3 |
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); } } |