From 4f40e5b73ab86701e456d52eaf02b45eec7449b8 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Fri, 29 Apr 2022 10:31:49 +0300 Subject: [PATCH 1/2] Fix section index for rooms page --- Riot/Modules/Rooms/RoomsViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]]; } } From b008fe46124227cc556ed3f638666964a4cc4308 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Fri, 29 Apr 2022 10:33:45 +0300 Subject: [PATCH 2/2] Add changelog --- changelog.d/6086.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/6086.bugfix 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.