From 939c4e7b332daaf3c2b5cb48e9481a13d18793fd Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 16 Feb 2024 18:33:34 +0200 Subject: [PATCH] Fix timeline scroll to top crash after introducing the typing notification section --- .../RoomScreen/View/Timeline/TimelineTableViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineTableViewController.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineTableViewController.swift index 3766cbaaa..bdc2c4c94 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineTableViewController.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineTableViewController.swift @@ -280,7 +280,7 @@ class TimelineTableViewController: UIViewController { guard !timelineItemsIDs.isEmpty else { return } - tableView.scrollToRow(at: IndexPath(item: timelineItemsIDs.count - 1, section: 0), at: .bottom, animated: animated) + tableView.scrollToRow(at: IndexPath(item: timelineItemsIDs.count - 1, section: 1), at: .bottom, animated: animated) } /// Checks whether or a backwards pagination is needed and requests one if so.