mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix build
This commit is contained in:
parent
c3f72dc51b
commit
2562b50b04
@ -266,6 +266,7 @@ swift_library(
|
|||||||
"//submodules/ChatMessageBackground:ChatMessageBackground",
|
"//submodules/ChatMessageBackground:ChatMessageBackground",
|
||||||
"//submodules/PeerInfoUI/CreateExternalMediaStreamScreen:CreateExternalMediaStreamScreen",
|
"//submodules/PeerInfoUI/CreateExternalMediaStreamScreen:CreateExternalMediaStreamScreen",
|
||||||
"//submodules/TranslateUI:TranslateUI",
|
"//submodules/TranslateUI:TranslateUI",
|
||||||
|
"//submodules/BrowserUI:BrowserUI",
|
||||||
] + select({
|
] + select({
|
||||||
"@build_bazel_rules_apple//apple:ios_armv7": [],
|
"@build_bazel_rules_apple//apple:ios_armv7": [],
|
||||||
"@build_bazel_rules_apple//apple:ios_arm64": appcenter_targets,
|
"@build_bazel_rules_apple//apple:ios_arm64": appcenter_targets,
|
||||||
|
@ -3302,7 +3302,9 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
|||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let peerId = strongSelf.presentationInterfaceState.chatLocation.peerId
|
guard let peerId = strongSelf.presentationInterfaceState.chatLocation.peerId else {
|
||||||
|
return
|
||||||
|
}
|
||||||
strongSelf.context.sharedContext.openResolvedUrl(.groupBotStart(peerId: peerId, payload: ""), context: strongSelf.context, urlContext: .generic, navigationController: strongSelf.effectiveNavigationController, openPeer: { id, navigation in
|
strongSelf.context.sharedContext.openResolvedUrl(.groupBotStart(peerId: peerId, payload: ""), context: strongSelf.context, urlContext: .generic, navigationController: strongSelf.effectiveNavigationController, openPeer: { id, navigation in
|
||||||
}, sendFile: nil,
|
}, sendFile: nil,
|
||||||
sendSticker: nil,
|
sendSticker: nil,
|
||||||
|
@ -112,7 +112,7 @@ func openResolvedUrlImpl(_ resolvedUrl: ResolvedUrl, context: AccountContext, ur
|
|||||||
let _ = (context.engine.messages.requestStartBotInGroup(botPeerId: botPeerId, groupPeerId: peerId, payload: payload)
|
let _ = (context.engine.messages.requestStartBotInGroup(botPeerId: botPeerId, groupPeerId: peerId, payload: payload)
|
||||||
|> deliverOnMainQueue).start(next: { result in
|
|> deliverOnMainQueue).start(next: { result in
|
||||||
if let navigationController = navigationController {
|
if let navigationController = navigationController {
|
||||||
context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: context, chatLocation: .peer(peerId)))
|
context.sharedContext.navigateToChatController(NavigateToChatControllerParams(navigationController: navigationController, context: context, chatLocation: .peer(id: peerId)))
|
||||||
}
|
}
|
||||||
switch result {
|
switch result {
|
||||||
case let .channelParticipant(participant):
|
case let .channelParticipant(participant):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user