Skip to content

Commit

Permalink
Update TimelineView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Sep 18, 2024
1 parent 6f2ee96 commit 8cac60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ElementX/Sources/Screens/Timeline/View/TimelineView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct TimelineView: UIViewControllerRepresentable {
let tableViewController = TimelineTableViewController(coordinator: context.coordinator,
isScrolledToBottom: $viewModelContext.isScrolledToBottom,
scrollToBottomPublisher: viewModelContext.viewState.timelineViewState.scrollToBottomPublisher)
// Needs to be dispatched on main asynchrnously otherwise we get a runtime warning
// Needs to be dispatched on main asynchronously otherwise we get a runtime warning
DispatchQueue.main.async {
viewModelContext.send(viewAction: .setOpenURLHandler { url in
openURL(url)
Expand Down

0 comments on commit 8cac60c

Please sign in to comment.