diff --git a/actions/global_actions.jsx b/actions/global_actions.jsx index 9a796ca4c55e..eb5e72b0be4e 100644 --- a/actions/global_actions.jsx +++ b/actions/global_actions.jsx @@ -9,6 +9,7 @@ import { getChannelStats, getMyChannelMember, markChannelAsRead, + markChannelAsViewed, selectChannel, } from 'mattermost-redux/actions/channels'; import {logout, loadMe} from 'mattermost-redux/actions/users'; @@ -70,6 +71,7 @@ export function emitChannelClickEvent(channel) { // Mark previous and next channel as read dispatch(markChannelAsRead(chan.id, oldChannelId)); + dispatch(markChannelAsViewed(chan.id, oldChannelId)); reloadIfServerVersionChanged(); });