mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 07:30:40 +00:00
Fix build
This commit is contained in:
parent
3da2eb595a
commit
1aebcb6c0b
@ -231,7 +231,7 @@ public final class ChatController: TelegramController, GalleryHiddenMediaTarget,
|
||||
|
||||
private var beginMediaRecordingRequestId: Int = 0
|
||||
private var lockMediaRecordingRequestId: Int?
|
||||
|
||||
|
||||
public override var navigationCustomData: Any? {
|
||||
return self.chatLocation
|
||||
}
|
||||
|
@ -692,7 +692,7 @@ public class ChatListController: TelegramController, UIViewControllerPreviewingD
|
||||
scrollToEndIfExists = true
|
||||
}
|
||||
|
||||
navigateToChatController(navigationController: navigationController, context: strongSelf.context, chatLocation: .peer(peerId), scrollToEndIfExists: scrollToEndIfExists, options: strongSelf.groupId == PeerGroupId.root ? [.removeOnMasterDetails] : [], parentGroupId: strongSelf.groupId, completion: { [weak self] in
|
||||
navigateToChatController(navigationController: navigationController, context: strongSelf.context, chatLocation: .peer(peerId), scrollToEndIfExists: scrollToEndIfExists, options: strongSelf.groupId == PeerGroupId.root ? [.removeOnMasterDetails] : [], parentGroupId: strongSelf.groupId, completion: { [weak self] in
|
||||
self?.chatListDisplayNode.chatListNode.clearHighlightAnimated(true)
|
||||
})
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ public enum NavigateToChatKeepStack {
|
||||
}
|
||||
|
||||
public func navigateToChatController(navigationController: NavigationController, chatController: ChatController? = nil, context: AccountContext, chatLocation: ChatLocation, messageId: MessageId? = nil, botStart: ChatControllerInitialBotStart? = nil, updateTextInputState: ChatTextInputState? = nil, activateInput: Bool = false, keepStack: NavigateToChatKeepStack = .default, purposefulAction: (() -> Void)? = nil, scrollToEndIfExists: Bool = false, animated: Bool = true, options: NavigationAnimationOptions = [], parentGroupId: PeerGroupId? = nil, completion: @escaping () -> Void = {}) {
|
||||
|
||||
var found = false
|
||||
var isFirst = true
|
||||
for controller in navigationController.viewControllers.reversed() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user