diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-13 09:27:28 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-02-13 09:27:28 -0500 |
commit | ff741740eebceb43b1d69b13d97ae7eed2aa32d1 (patch) | |
tree | 0f795cea935a72997bf3618ceaf3b0513d5e8096 /webapp/components/post_view/post_view_cache.jsx | |
parent | fac85b676eafb20b5f70db1805006d64889606ff (diff) | |
download | chat-ff741740eebceb43b1d69b13d97ae7eed2aa32d1.tar.gz chat-ff741740eebceb43b1d69b13d97ae7eed2aa32d1.tar.bz2 chat-ff741740eebceb43b1d69b13d97ae7eed2aa32d1.zip |
Increase performance when receiving messages (#5375)
Diffstat (limited to 'webapp/components/post_view/post_view_cache.jsx')
-rw-r--r-- | webapp/components/post_view/post_view_cache.jsx | 2 |
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); } |