mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Various improvements
This commit is contained in:
@@ -100,6 +100,7 @@ public final class QrCodeScanScreen: ViewController {
|
||||
|
||||
public var showMyCode: () -> Void = {}
|
||||
public var completion: (String?) -> Void = { _ in }
|
||||
public var dismissed: (() -> Void)?
|
||||
|
||||
private var codeResolved = false
|
||||
|
||||
@@ -133,8 +134,6 @@ public final class QrCodeScanScreen: ViewController {
|
||||
|
||||
if case .custom = subject {
|
||||
self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: self.presentationData.strings.Common_Cancel, style: .plain, target: self, action: #selector(self.cancelPressed))
|
||||
} else if case .peer = subject {
|
||||
self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: self.presentationData.strings.Contacts_QrCode_MyCode, style: .plain, target: self, action: #selector(self.myCodePressed))
|
||||
} else {
|
||||
#if DEBUG
|
||||
self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Test", style: .plain, target: self, action: #selector(self.testPressed))
|
||||
@@ -910,6 +909,9 @@ private final class QrCodeScanScreenNode: ViewControllerTracingNode, ASScrollVie
|
||||
if controller is QrCodeScanScreen {
|
||||
return false
|
||||
}
|
||||
if controller is ChatQrCodeScreen {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
navigationController.setViewControllers(viewControllers, animated: false)
|
||||
|
||||
Reference in New Issue
Block a user