Reset unread counts for channels being switched to/away (#5037)

Этот коммит содержится в:
Joram Wilander
2017-01-10 16:17:22 -05:00
коммит произвёл Harrison Healey
родитель 5be99e1f85
Коммит 04893cbe7c

Просмотреть файл

@@ -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({