diff --git a/app/components/post_list/post_list.js b/app/components/post_list/post_list.js index a84bf0bb9..6b103b10a 100644 --- a/app/components/post_list/post_list.js +++ b/app/components/post_list/post_list.js @@ -81,7 +81,7 @@ export default class PostList extends PureComponent { scrollList = () => { InteractionManager.runAfterInteractions(() => { - if (this.props.postIds.length && this.newMessagesIndex !== -1) { + if (this.props.postIds.length && this.newMessagesIndex !== -1 && this.newMessagesIndex <= this.props.postIds.length) { if (this.refs.list) { this.refs.list.scrollToIndex({ index: this.newMessagesIndex,