mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 07:57:01 +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 beginMediaRecordingRequestId: Int = 0
|
||||||
private var lockMediaRecordingRequestId: Int?
|
private var lockMediaRecordingRequestId: Int?
|
||||||
|
|
||||||
public override var navigationCustomData: Any? {
|
public override var navigationCustomData: Any? {
|
||||||
return self.chatLocation
|
return self.chatLocation
|
||||||
}
|
}
|
||||||
|
@ -692,7 +692,7 @@ public class ChatListController: TelegramController, UIViewControllerPreviewingD
|
|||||||
scrollToEndIfExists = true
|
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)
|
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 = {}) {
|
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 found = false
|
||||||
var isFirst = true
|
var isFirst = true
|
||||||
for controller in navigationController.viewControllers.reversed() {
|
for controller in navigationController.viewControllers.reversed() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user