浏览代码

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) {
     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))
         msg.setFile(filepath: url.path, mimeType: DcUtils.getMimeTypeForPath(path: url.path))
         self.messages.append(msg)
         self.messages.append(msg)
     }
     }