From 7be2a05cf58c22d1edfab12a2b55569c5e48ab2f Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 1 Jun 2016 08:54:31 -0400 Subject: Allow clearing direct messages across team based on channel view events (#3176) --- webapp/actions/websocket_actions.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp') diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx index e317b8db0..ffeb27fb2 100644 --- a/webapp/actions/websocket_actions.jsx +++ b/webapp/actions/websocket_actions.jsx @@ -245,7 +245,7 @@ function handleUserRemovedEvent(msg) { function handleChannelViewedEvent(msg) { // Useful for when multiple devices have the app open to different channels - if (TeamStore.getCurrentId() === msg.team_id && ChannelStore.getCurrentId() !== msg.channel_id && UserStore.getCurrentId() === msg.user_id) { + if (ChannelStore.getCurrentId() !== msg.channel_id && UserStore.getCurrentId() === msg.user_id) { AsyncClient.getChannel(msg.channel_id); } } -- cgit v1.2.3-1-g7c22