Skip to content

Commit

Permalink
swift fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Apr 4, 2024
1 parent 3b93a47 commit 1c33587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deltachat-ios/Controller/QrPageController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion deltachat-ios/Controller/QrViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}))
Expand Down

0 comments on commit 1c33587

Please sign in to comment.