diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/needs_team.jsx | 4 | ||||
-rw-r--r-- | webapp/components/post_view/post_view_cache.jsx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/needs_team.jsx b/webapp/components/needs_team.jsx index f90297065..0b91814c3 100644 --- a/webapp/components/needs_team.jsx +++ b/webapp/components/needs_team.jsx @@ -94,7 +94,7 @@ export default class NeedsTeam extends React.Component { // Set up tracking for whether the window is active window.isActive = true; $(window).on('focus', () => { - AsyncClient.updateLastViewedAt(); + AsyncClient.viewChannel(); ChannelStore.resetCounts(ChannelStore.getCurrentId()); ChannelStore.emitChange(); window.isActive = true; @@ -103,7 +103,7 @@ export default class NeedsTeam extends React.Component { $(window).on('blur', () => { window.isActive = false; if (UserStore.getCurrentUser()) { - AsyncClient.setActiveChannel(''); + AsyncClient.viewChannel(''); } }); diff --git a/webapp/components/post_view/post_view_cache.jsx b/webapp/components/post_view/post_view_cache.jsx index 3b6123b09..7de11d667 100644 --- a/webapp/components/post_view/post_view_cache.jsx +++ b/webapp/components/post_view/post_view_cache.jsx @@ -32,7 +32,7 @@ export default class PostViewCache extends React.Component { componentWillUnmount() { if (UserStore.getCurrentUser()) { - AsyncClient.setActiveChannel(''); + AsyncClient.viewChannel(''); } ChannelStore.removeChangeListener(this.onChannelChange); } |