Various fixes

This commit is contained in:
Ilya Laktyushin
2024-08-01 09:57:57 +02:00
parent d21d943d8d
commit 210cc6133f
6 changed files with 319 additions and 29 deletions

View File

@@ -250,12 +250,7 @@ func openResolvedUrlImpl(
present(controller, nil)
case let .instantView(webpage, anchor):
let sourceLocation = InstantPageSourceLocation(userLocation: .other, peerType: .channel)
let pageController: ViewController
if context.sharedContext.immediateExperimentalUISettings.browserExperiment {
pageController = BrowserScreen(context: context, subject: .instantPage(webPage: webpage, anchor: anchor, sourceLocation: sourceLocation))
} else {
pageController = InstantPageController(context: context, webPage: webpage, sourceLocation: sourceLocation, anchor: anchor)
}
let pageController = BrowserScreen(context: context, subject: .instantPage(webPage: webpage, anchor: anchor, sourceLocation: sourceLocation))
navigationController?.pushViewController(pageController)
case let .join(link):
dismissInput()