Explorar o código

fix view type for shared media

cyberta %!s(int64=5) %!d(string=hai) anos
pai
achega
c3b4a87d67
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      DcShare/Helper/ShareAttachment.swift

+ 1 - 1
DcShare/Helper/ShareAttachment.swift

@@ -139,7 +139,7 @@ class ShareAttachment {
     }
 
     func addDcMsg(url: URL, viewType: Int32) {
-        let msg = DcMsg(viewType: DC_MSG_VIDEO)
+        let msg = DcMsg(viewType: viewType)
         msg.setFile(filepath: url.path, mimeType: DcUtils.getMimeTypeForPath(path: url.path))
         self.messages.append(msg)
     }