Don't dismiss issue reporter when email is cancelled

Closes #191
This commit is contained in:
Shadowfacts 2022-10-27 23:10:00 -04:00
parent ba209fa4d2
commit aa0629d202
1 changed files with 5 additions and 1 deletions

View File

@ -154,7 +154,11 @@ class IssueReporterViewController: UIViewController {
extension IssueReporterViewController: MFMailComposeViewControllerDelegate {
func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?) {
controller.dismiss(animated: true) {
if result == .cancelled {
// don't dismiss ourself, to allowe the user to send the report a different way
} else {
self.dismiss()
}
}
}
}