Sfoglia il codice sorgente

remove cached videos after adding them to a draft message

cyberta 2 anni fa
parent
commit
87e670416c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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.draft.setAttachment(viewType: DC_MSG_VIDEO, path: url.relativePath)
             self.configureDraftArea(draft: self.draft)
             self.configureDraftArea(draft: self.draft)
             self.focusInputTextView()
             self.focusInputTextView()
+            FileHelper.deleteFile(atPath: url.relativePath)
         }
         }
     }
     }