Stop storing the openURL action to fix a retain cycle.

Uses the existing timeline action instead.
This commit is contained in:
Doug
2025-09-03 12:32:11 +01:00
committed by Doug
parent af5ebf8cae
commit 86f978a439
3 changed files with 5 additions and 16 deletions
@@ -77,7 +77,6 @@ enum TimelineViewAction {
case hasSwitchedTimeline
case hasScrolled(direction: ScrollDirection)
case setOpenURLAction(OpenURLAction)
case displayPredecessorRoom
}
@@ -117,9 +116,6 @@ struct TimelineViewState: BindableState {
// It's updated from the room info, so it's faster than using the timeline
var pinnedEventIDs: Set<String> = []
/// an openURL closure which opens URLs first using the App's environment rather than skipping out to external apps
var openURL: OpenURLAction?
/// A closure providing the associated audio player state for an item in the timeline.
var audioPlayerStateProvider: (@MainActor (_ itemId: TimelineItemIdentifier) -> AudioPlayerState?)?