Merge pull request #1160 from mattermost/force-last-viewed

Force updating last viewed at for new posts
Этот коммит содержится в:
Christopher Speller
2015-10-23 12:16:31 -04:00
родитель 3e348220dc fe82c43eeb
Коммит a7852a4810
2 изменённых файлов: 3 добавлений и 3 удалений

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

@@ -158,7 +158,7 @@ function handleNewPostEvent(msg) {
// Update channel state
if (ChannelStore.getCurrentId() === msg.channel_id) {
if (window.isActive) {
AsyncClient.updateLastViewedAt();
AsyncClient.updateLastViewedAt(true);
}
} else {
AsyncClient.getChannel(msg.channel_id);