Эх сурвалжийг харах

fix saving and restoring attachments

cyberta 4 жил өмнө
parent
commit
e73ffbddfe

+ 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)
         }