mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Web app improvements
This commit is contained in:
@@ -24,6 +24,7 @@ import WebsiteType
|
||||
import GalleryData
|
||||
import StoryContainerScreen
|
||||
import WallpaperGalleryScreen
|
||||
import BrowserUI
|
||||
|
||||
func openChatMessageImpl(_ params: OpenChatMessageParams) -> Bool {
|
||||
var story: TelegramMediaStory?
|
||||
@@ -373,7 +374,13 @@ func openChatInstantPageImpl(context: AccountContext, message: Message, sourcePe
|
||||
if let (webpage, anchor) = instantPageAndAnchor(message: message) {
|
||||
let sourceLocation = InstantPageSourceLocation(userLocation: .peer(message.id.peerId), peerType: sourcePeerType ?? .channel)
|
||||
|
||||
let pageController = InstantPageController(context: context, webPage: webpage, sourceLocation: sourceLocation, anchor: anchor)
|
||||
let pageController: ViewController
|
||||
if !"".isEmpty, context.sharedContext.immediateExperimentalUISettings.browserExperiment {
|
||||
let _ = anchor
|
||||
pageController = BrowserScreen(context: context, subject: .instantPage(webPage: webpage, sourceLocation: sourceLocation))
|
||||
} else {
|
||||
pageController = InstantPageController(context: context, webPage: webpage, sourceLocation: sourceLocation, anchor: anchor)
|
||||
}
|
||||
navigationController.pushViewController(pageController)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user