Various improvements

This commit is contained in:
Ilya Laktyushin
2025-05-20 22:30:48 +02:00
parent 62f156440f
commit 81e11d6d36
102 changed files with 3073 additions and 558 deletions

View File

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