diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-06 14:20:54 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-06 14:20:54 -0500 |
commit | 4795c7c003d30ede8309d4fe647979d5606d5990 (patch) | |
tree | e1e5b5ed32b2d9a83ffcfecf48419bb864113d04 /web/react/components | |
parent | 1610fe6ca5c451cc12c95b15dc1c3bdaf8b72b87 (diff) | |
download | chat-4795c7c003d30ede8309d4fe647979d5606d5990.tar.gz chat-4795c7c003d30ede8309d4fe647979d5606d5990.tar.bz2 chat-4795c7c003d30ede8309d4fe647979d5606d5990.zip |
Fixing jumping to bottom of channels when messages recieved in anouther channel
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/posts_view_container.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/posts_view_container.jsx b/web/react/components/posts_view_container.jsx index 761664602..5059747bd 100644 --- a/web/react/components/posts_view_container.jsx +++ b/web/react/components/posts_view_container.jsx @@ -87,6 +87,8 @@ export default class PostsViewContainer extends React.Component { // Has the channel really changed? if (channelId === channels[this.state.currentChannelIndex]) { + // Dirty hack + this.forceUpdate(); return; } |