summaryrefslogtreecommitdiffstats
path: root/webapp/actions/global_actions.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/actions/global_actions.jsx')
-rw-r--r--webapp/actions/global_actions.jsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx
index c6b796983..ea077d6eb 100644
--- a/webapp/actions/global_actions.jsx
+++ b/webapp/actions/global_actions.jsx
@@ -55,6 +55,10 @@ export function emitChannelClickEvent(channel) {
trackPage();
});
+ // Mark previous and next channel as read
+ ChannelStore.resetCounts(ChannelStore.getCurrentId());
+ ChannelStore.resetCounts(chan.id);
+
BrowserStore.setGlobalItem(chan.team_id, chan.id);
AppDispatcher.handleViewAction({
@@ -487,10 +491,9 @@ export function clientLogout(redirectTo = '/') {
UserStore.clear();
TeamStore.clear();
ChannelStore.clear();
- newLocalizationSelected(global.window.mm_config.DefaultClientLocale);
stopPeriodicStatusUpdates();
WebsocketActions.close();
- browserHistory.push(redirectTo);
+ window.location.href = redirectTo;
}
export function emitSearchMentionsEvent(user) {