Explorar o código

fix saving and restoring attachments

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
e73ffbddfe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
         }