From fe82c43eeb403ee2ef3ce2932f64bf00c784a65d Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Fri, 23 Oct 2015 11:22:08 -0400 Subject: Force updating last viewed at for new posts --- web/react/utils/async_client.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/react/utils/async_client.jsx') diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx index fb7631159..b1bc71d54 100644 --- a/web/react/utils/async_client.jsx +++ b/web/react/utils/async_client.jsx @@ -152,14 +152,14 @@ export function getChannel(id) { ); } -export function updateLastViewedAt() { +export function updateLastViewedAt(force) { const channelId = ChannelStore.getCurrentId(); if (channelId === null) { return; } - if (isCallInProgress(`updateLastViewed${channelId}`)) { + if (isCallInProgress(`updateLastViewed${channelId}`) && !force) { return; } -- cgit v1.2.3-1-g7c22