From d3184ffe1d02aaaaca0643ff324a8d712b5bea77 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 4 Oct 2024 13:25:16 +0200 Subject: [PATCH] weak self to prevent retain cycle --- deltachat-ios/Controller/Settings/AdvancedViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deltachat-ios/Controller/Settings/AdvancedViewController.swift b/deltachat-ios/Controller/Settings/AdvancedViewController.swift index 7c800323e..c16faa521 100644 --- a/deltachat-ios/Controller/Settings/AdvancedViewController.swift +++ b/deltachat-ios/Controller/Settings/AdvancedViewController.swift @@ -398,7 +398,8 @@ internal final class AdvancedViewController: UITableViewController { self.present(alert, animated: true, completion: nil) })) - alert.addAction(UIAlertAction(title: String.localized("learn_more"), style: .default, handler: { _ in + alert.addAction(UIAlertAction(title: String.localized("learn_more"), style: .default, handler: { [weak self] _ in + guard let self else { return } self.navigationController?.pushViewController(HelpViewController(dcContext: self.dcContext, fragment: "#importkey"), animated: true) }))