summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-06 14:20:54 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-06 14:20:54 -0500
commit4795c7c003d30ede8309d4fe647979d5606d5990 (patch)
treee1e5b5ed32b2d9a83ffcfecf48419bb864113d04 /web
parent1610fe6ca5c451cc12c95b15dc1c3bdaf8b72b87 (diff)
downloadchat-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')
-rw-r--r--web/react/components/posts_view_container.jsx2
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;
}