Преглед на файлове

remove cached videos after adding them to a draft message

cyberta преди 2 години
родител
ревизия
87e670416c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -1702,6 +1702,7 @@ class ChatViewController: UITableViewController {
             self.draft.setAttachment(viewType: DC_MSG_VIDEO, path: url.relativePath)
             self.configureDraftArea(draft: self.draft)
             self.focusInputTextView()
+            FileHelper.deleteFile(atPath: url.relativePath)
         }
     }