소스 검색

fix view type for shared media

cyberta 5 년 전
부모
커밋
c3b4a87d67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
     }