fix customised on cancel won't dismiss the modal

pull/1061/head
Ryan ZHAO 3 months ago
parent a13f5ae253
commit be80fec15d

@ -1263,9 +1263,11 @@ extension ConversationVC:
UIApplication.shared.open(url, options: [:], completionHandler: nil)
self?.showInputAccessoryView()
},
onCancel: { [weak self] _ in
onCancel: { [weak self] modal in
UIPasteboard.general.string = url.absoluteString
self?.showInputAccessoryView()
modal.dismiss(animated: true) {
self?.showInputAccessoryView()
}
}
)
)

@ -159,10 +159,11 @@ struct LandingScreen: View {
UIApplication.shared.open(url)
}
},
onCancel: { _ in
onCancel: { modal in
if let url: URL = URL(string: "https://getsession.org/privacy-policy") {
UIApplication.shared.open(url)
}
modal.close()
}
)
)

Loading…
Cancel
Save