Parcourir la source

fix saving and restoring attachments

cyberta il y a 4 ans
Parent
commit
e73ffbddfe
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      deltachat-ios/Chat/DraftModel.swift

+ 1 - 1
deltachat-ios/Chat/DraftModel.swift

@@ -19,7 +19,7 @@ public class DraftModel {
         draftText = draftMsg?.text
         quoteText = draftMsg?.quoteText
         quoteMessage = draftMsg?.quoteMessage
-        draftAttachment = draftMsg?.fileURL?.absoluteString
+        draftAttachment = draftMsg?.fileURL?.relativePath
         if let viewType = draftMsg?.type {
             draftViewType = Int32(viewType)
         }