Merge pull request #6089 from vector-im/ismail/6086_rooms_crash

Fix crash when tabbar tapped for rooms
This commit is contained in:
ismailgulek
2022-04-29 11:16:47 +03:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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]];
}
}
+1
View File
@@ -0,0 +1 @@
RoomsViewController: Avoid crash by fixing section index to scroll.