marinofaggiana преди 6 години
родител
ревизия
c51a57ea6e
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      iOSClient/Main/Create cloud/NCCreateFormUploadVoiceNote.swift

+ 1 - 0
iOSClient/Main/Create cloud/NCCreateFormUploadVoiceNote.swift

@@ -208,6 +208,7 @@ class NCCreateFormUploadVoiceNote: XLFormViewController, NCSelectDelegate {
     
     @objc func cancel() {
         
+        try? FileManager.default.removeItem(atPath: fileNamePath)
         self.dismiss(animated: true, completion: nil)
     }