Browse Source

fix content validation for shared images

cyberta 5 năm trước cách đây
mục cha
commit
71467b21a4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      DcShare/Helper/ShareAttachment.swift

+ 1 - 1
DcShare/Helper/ShareAttachment.swift

@@ -113,8 +113,8 @@ class ShareAttachment {
                 let path = DcUtils.saveImage(image: result)
                 let msg = DcMsg(viewType: DC_MSG_IMAGE)
                 msg.setFile(filepath: path)
-                self.delegate?.onAttachmentChanged()
                 self.messages.append(msg)
+                self.delegate?.onAttachmentChanged()
                 if self.imageThumbnail == nil {
                     self.imageThumbnail = result.scaleDownImage(toMax: self.thumbnailSize)
                     self.delegate?.onThumbnailChanged()