diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-06 13:53:26 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-06 13:53:26 -0500 |
commit | 1610fe6ca5c451cc12c95b15dc1c3bdaf8b72b87 (patch) | |
tree | 5cd1c28c49fb696f3e3efbcefd158835d8c2a0a1 /web/react/components | |
parent | 32069345b55c5b5fcbb7131bc67444b9a386133f (diff) | |
download | chat-1610fe6ca5c451cc12c95b15dc1c3bdaf8b72b87.tar.gz chat-1610fe6ca5c451cc12c95b15dc1c3bdaf8b72b87.tar.bz2 chat-1610fe6ca5c451cc12c95b15dc1c3bdaf8b72b87.zip |
Revert "Fixed loading forever on first page load"
This reverts commit d020db39cb3c694332b58f030c4441a761b16d01.
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/posts_view_container.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
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; |