Fix build

This commit is contained in:
Ilya Laktyushin 2019-06-26 01:10:47 +02:00
parent 3da2eb595a
commit 1aebcb6c0b
3 changed files with 2 additions and 3 deletions

View File

@ -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
}

View File

@ -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)
})
}

View File

@ -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() {