diff --git a/deltachat-ios/Controller/QrPageController.swift b/deltachat-ios/Controller/QrPageController.swift index 8feba638c..0541c3ce2 100644 --- a/deltachat-ios/Controller/QrPageController.swift +++ b/deltachat-ios/Controller/QrPageController.swift @@ -139,7 +139,7 @@ class QrPageController: UIPageViewController { guard let code = self.dcContext.getSecurejoinQr(chatId: 0) else { return } guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else { return } _ = self.dcContext.setConfigFromQR(qrCode: code) - setViewControllers([QrViewController(dcContext: dcContext, qrCodeHint: qrCodeHint)], direction: .reverse, animated: false, completion: nil) + self.setViewControllers([QrViewController(dcContext: self.dcContext, qrCodeHint: self.qrCodeHint)], direction: .reverse, animated: false, completion: nil) appDelegate.appCoordinator.presentTabBarController() })) present(alert, animated: true) diff --git a/deltachat-ios/Controller/QrViewController.swift b/deltachat-ios/Controller/QrViewController.swift index 952fe3522..182b0830a 100644 --- a/deltachat-ios/Controller/QrViewController.swift +++ b/deltachat-ios/Controller/QrViewController.swift @@ -109,7 +109,7 @@ class QrViewController: UIViewController { alert.addAction(UIAlertAction(title: String.localized("cancel"), style: .default)) alert.addAction(UIAlertAction(title: String.localized("withdraw_qr_code"), style: .destructive, handler: { [weak self] _ in guard let self else { return } - guard let code = dcContext.getSecurejoinQr(chatId: self.chatId) else { return } + guard let code = self.dcContext.getSecurejoinQr(chatId: self.chatId) else { return } _ = self.dcContext.setConfigFromQR(qrCode: code) self.navigationController?.popViewController(animated: true) }))