Check that the split view controller is collapsed before deselecting the timeline cell.

This commit is contained in:
Brent Simmons committed 2026-02-01 21:51:58 -08:00
1 parent 6a714df299
commit 0f62ef39cc
1 file changed
+5 -2
@@ -231,12 +231,15 @@ final class MainTimelineModernViewController: UIViewController, UndoableCommandR
guard traitCollection.userInterfaceIdiom == .phone else {
return
}
guard let coordinator, coordinator.isRootSplitCollapsed else {
return
}
if coordinator?.currentArticle != nil {
if coordinator.currentArticle != nil {
if let indexPath = collectionView?.indexPathsForSelectedItems?.first {
collectionView?.deselectItem(at: indexPath, animated: true)
}
coordinator?.selectArticle(nil)
coordinator.selectArticle(nil)
}
}