diff --git a/Tusker/Screens/Timeline/InstanceTimelineViewController.swift b/Tusker/Screens/Timeline/InstanceTimelineViewController.swift index 4c565c001..9ec314d94 100644 --- a/Tusker/Screens/Timeline/InstanceTimelineViewController.swift +++ b/Tusker/Screens/Timeline/InstanceTimelineViewController.swift @@ -77,11 +77,25 @@ class InstanceTimelineViewController: TimelineViewController { cell.updateUI(statusID: id, state: state, filterResult: filterResult, precomputedContent: precomputedContent) } + override func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool { + guard browsingEnabled else { + return false + } + return super.collectionView(collectionView, shouldSelectItemAt: indexPath) + } + override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { guard browsingEnabled else { return } super.collectionView(collectionView, didSelectItemAt: indexPath) } + override func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? { + guard browsingEnabled else { + return nil + } + return super.collectionView(collectionView, contextMenuConfigurationForItemAt: indexPath, point: point) + } + // MARK: Timeline override func handleLoadAllError(_ error: Swift.Error) async {