summaryrefslogtreecommitdiffstats
path: root/web/react/components/posts_view_container.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/posts_view_container.jsx')
-rw-r--r--web/react/components/posts_view_container.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/react/components/posts_view_container.jsx b/web/react/components/posts_view_container.jsx
index 6cdf69402..5059747bd 100644
--- a/web/react/components/posts_view_container.jsx
+++ b/web/react/components/posts_view_container.jsx
@@ -85,6 +85,13 @@ export default class PostsViewContainer extends React.Component {
const channels = this.state.channels.slice();
const channelId = ChannelStore.getCurrentId();
+ // Has the channel really changed?
+ if (channelId === channels[this.state.currentChannelIndex]) {
+ // Dirty hack
+ this.forceUpdate();
+ return;
+ }
+
PostStore.clearUnseenDeletedPosts(channelId);
let lastViewed = Number.MAX_VALUE;