summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view/post_view_cache.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/post_view/post_view_cache.jsx')
-rw-r--r--webapp/components/post_view/post_view_cache.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/post_view_cache.jsx b/webapp/components/post_view/post_view_cache.jsx
index 9c3f1db1b..b0b35a5c0 100644
--- a/webapp/components/post_view/post_view_cache.jsx
+++ b/webapp/components/post_view/post_view_cache.jsx
@@ -33,7 +33,7 @@ export default class PostViewCache extends React.Component {
componentWillUnmount() {
if (UserStore.getCurrentUser()) {
- AsyncClient.viewChannel('');
+ AsyncClient.viewChannel('', this.state.currentChannelId || '');
}
ChannelStore.removeChangeListener(this.onChannelChange);
}