Reset isLoadingMoreTop flag when switching channels (#2224)

This commit is contained in:
Elias Nahum 2018-10-05 17:45:40 -03:00
parent dff9628b6e
commit faa3a55b3d
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -62,6 +62,10 @@ export default class ChannelPostList extends PureComponent {
visiblePostIds = this.getVisiblePostIds(nextProps);
}
if (this.props.channelId !== nextProps.channelId) {
this.isLoadingMoreTop = false;
}
this.setState({visiblePostIds});
}