Skip to content

Commit ee12fd3

Browse files
authored
Merge pull request #2311 from nextcloud/fix/noid/navigation-crash
fix: Crash when selecting a room while in a transition
2 parents b20e649 + e9d6a1a commit ee12fd3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

NextcloudTalk/Rooms/RoomsTableViewController.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,13 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
18221822
return;
18231823
}
18241824

1825+
if (self.navigationController.transitionCoordinator != nil) {
1826+
// In case we are currently in a transition (e.g. swipe back from a conversation),
1827+
// we don't want to present any new view controller, as that leads to crashes on iOS >= 26
1828+
[self removeRoomSelection];
1829+
return;
1830+
}
1831+
18251832
if (tableView == self.tableView && indexPath.section == kRoomsSectionPendingFederationInvitation) {
18261833
FederationInvitationTableViewController *federationInvitationVC = [[FederationInvitationTableViewController alloc] init];
18271834
NCNavigationController *navigationController = [[NCNavigationController alloc] initWithRootViewController:federationInvitationVC];

0 commit comments

Comments
 (0)