From 4795c7c003d30ede8309d4fe647979d5606d5990 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 6 Nov 2015 14:20:54 -0500 Subject: Fixing jumping to bottom of channels when messages recieved in anouther channel --- web/react/components/posts_view_container.jsx | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3-1-g7c22