Selaa lähdekoodia

keep order same between chat attach menu and avatar selection

cyberta 5 vuotta sitten
vanhempi
commit
02067e8e13
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      deltachat-ios/Controller/ChatViewController.swift

+ 2 - 2
deltachat-ios/Controller/ChatViewController.swift

@@ -892,11 +892,11 @@ extension ChatViewController: MessagesLayoutDelegate {
 
     private func showClipperOptions() {
         let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
+        let galleryAction = PhotoPickerAlertAction(title: String.localized("gallery"), style: .default, handler: videoButtonPressed(_:))
         let photoAction = PhotoPickerAlertAction(title: String.localized("camera"), style: .default, handler: photoButtonPressed(_:))
-        let videoAction = PhotoPickerAlertAction(title: String.localized("gallery"), style: .default, handler: videoButtonPressed(_:))
 
         alert.addAction(photoAction)
-        alert.addAction(videoAction)
+        alert.addAction(galleryAction)
         alert.addAction(UIAlertAction(title: String.localized("cancel"), style: .cancel, handler: nil))
         self.present(alert, animated: true, completion: nil)
     }