Browse Source

fix saving and restoring attachments

cyberta 4 năm trước cách đây
mục cha
commit
e73ffbddfe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)
         }