diff --git a/Riot/Modules/Rooms/RoomsViewController.m b/Riot/Modules/Rooms/RoomsViewController.m index 51b203c44..e6a595a69 100644 --- a/Riot/Modules/Rooms/RoomsViewController.m +++ b/Riot/Modules/Rooms/RoomsViewController.m @@ -139,7 +139,7 @@ // Check whether the recents data source is correctly configured. if (recentsDataSource.recentsDataSourceMode == RecentsDataSourceModeRooms) { - [self scrollToTheTopTheNextRoomWithMissedNotificationsInSection:[recentsDataSource.sections sectionTypeForSectionIndex:RecentsDataSourceSectionTypeConversation]]; + [self scrollToTheTopTheNextRoomWithMissedNotificationsInSection:[recentsDataSource.sections sectionIndexForSectionType:RecentsDataSourceSectionTypeConversation]]; } } diff --git a/changelog.d/6086.bugfix b/changelog.d/6086.bugfix new file mode 100644 index 000000000..fbb8b7202 --- /dev/null +++ b/changelog.d/6086.bugfix @@ -0,0 +1 @@ +RoomsViewController: Avoid crash by fixing section index to scroll.