summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-23 12:16:31 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-23 12:16:31 -0400
commita7852a4810b26436cd9ab952d013d610d9d8ec6b (patch)
treeb8ce149c593ab1e63a24456988981ad492c28de2 /web/react/utils
parent3e348220dc2edbca017bfab06b887af3f3ec9d88 (diff)
parentfe82c43eeb403ee2ef3ce2932f64bf00c784a65d (diff)
downloadchat-a7852a4810b26436cd9ab952d013d610d9d8ec6b.tar.gz
chat-a7852a4810b26436cd9ab952d013d610d9d8ec6b.tar.bz2
chat-a7852a4810b26436cd9ab952d013d610d9d8ec6b.zip
Merge pull request #1160 from mattermost/force-last-viewed
Force updating last viewed at for new posts
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/async_client.jsx4
1 files changed, 2 insertions, 2 deletions
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;
}