From 1610fe6ca5c451cc12c95b15dc1c3bdaf8b72b87 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 6 Nov 2015 13:53:26 -0500 Subject: Revert "Fixed loading forever on first page load" This reverts commit d020db39cb3c694332b58f030c4441a761b16d01. --- web/react/components/posts_view_container.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web') diff --git a/web/react/components/posts_view_container.jsx b/web/react/components/posts_view_container.jsx index 6cdf69402..761664602 100644 --- a/web/react/components/posts_view_container.jsx +++ b/web/react/components/posts_view_container.jsx @@ -85,6 +85,11 @@ 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]) { + return; + } + PostStore.clearUnseenDeletedPosts(channelId); let lastViewed = Number.MAX_VALUE; -- cgit v1.2.3-1-g7c22