B. Petersen 5 жил өмнө
parent
commit
4dc48fb63e

+ 4 - 4
deltachat-ios/Helper/MediaPicker.swift

@@ -170,10 +170,10 @@ extension MediaPicker: UIImagePickerControllerDelegate {
                 self.delegate?.onVideoSelected(url: (url as NSURL))
             } else if let error = error {
                 logger.error(error.localizedDescription)
-            let alert = UIAlertController(title: String.localized("error"), message: nil, preferredStyle: .alert)
-            alert.addAction(UIAlertAction(title: String.localized("ok"), style: .cancel, handler: { _ in
-                self.navigationController?.dismiss(animated: true, completion: nil)
-            }))
+                let alert = UIAlertController(title: String.localized("error"), message: nil, preferredStyle: .alert)
+                alert.addAction(UIAlertAction(title: String.localized("ok"), style: .cancel, handler: { _ in
+                    self.navigationController?.dismiss(animated: true, completion: nil)
+                }))
                 self.navigationController?.present(alert, animated: true, completion: nil)
             }
         })