diff --git a/app/components/post_list/post_list.ios.js b/app/components/post_list/post_list.ios.js index 04992e8ba..e314deb98 100644 --- a/app/components/post_list/post_list.ios.js +++ b/app/components/post_list/post_list.ios.js @@ -93,11 +93,10 @@ export default class PostList extends PostListBase { channelId, highlightPostId, postIds, + refreshing, } = this.props; - const refreshControl = { - refreshing: false, - }; + const refreshControl = {refreshing}; if (channelId) { refreshControl.onRefresh = this.handleRefresh; diff --git a/app/components/post_list/post_list_base.js b/app/components/post_list/post_list_base.js index 436f7bb1a..119392de3 100644 --- a/app/components/post_list/post_list_base.js +++ b/app/components/post_list/post_list_base.js @@ -37,6 +37,7 @@ export default class PostListBase extends PureComponent { onPostPress: PropTypes.func, onRefresh: PropTypes.func, postIds: PropTypes.array.isRequired, + refreshing: PropTypes.bool.isRequired, renderFooter: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), renderReplies: PropTypes.bool, serverURL: PropTypes.string.isRequired, diff --git a/app/screens/channel/channel_post_list/channel_post_list.js b/app/screens/channel/channel_post_list/channel_post_list.js index ee2bd9a00..1630cf61f 100644 --- a/app/screens/channel/channel_post_list/channel_post_list.js +++ b/app/screens/channel/channel_post_list/channel_post_list.js @@ -37,6 +37,7 @@ export default class ChannelPostList extends PureComponent { navigator: PropTypes.object, postIds: PropTypes.array.isRequired, postVisibility: PropTypes.number, + refreshing: PropTypes.bool.isRequired, theme: PropTypes.object.isRequired, }; @@ -165,6 +166,7 @@ export default class ChannelPostList extends PureComponent { loadMorePostsVisible, navigator, postIds, + refreshing, theme, } = this.props; @@ -193,6 +195,7 @@ export default class ChannelPostList extends PureComponent { channelId={channelId} navigator={navigator} renderFooter={this.renderFooter} + refreshing={refreshing} /> ); } diff --git a/app/screens/channel/channel_post_list/index.js b/app/screens/channel/channel_post_list/index.js index 10b093a40..f18570cf6 100644 --- a/app/screens/channel/channel_post_list/index.js +++ b/app/screens/channel/channel_post_list/index.js @@ -28,6 +28,7 @@ function mapStateToProps(state) { postVisibility: state.views.channel.postVisibility[channelId], lastViewedAt: getMyCurrentChannelMembership(state).last_viewed_at, loadMorePostsVisible: state.views.channel.loadMorePostsVisible, + refreshing: state.views.channel.refreshing, theme: getTheme(state), }; }