فهرست منبع

scale thumbnail down based on thumbnailSize variable instead of a hard-coded value

cyberta 3 سال پیش
والد
کامیت
16a7c1284e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      DcShare/Helper/ShareAttachment.swift

+ 1 - 1
DcShare/Helper/ShareAttachment.swift

@@ -120,7 +120,7 @@ class ShareAttachment {
                 self.messages.append(msg)
                 self.delegate?.onAttachmentChanged()
                 if self.imageThumbnail == nil {
-                    self.imageThumbnail = result.scaleDownImage(toMax: 96)
+                    self.imageThumbnail = result.scaleDownImage(toMax: self.thumbnailSize)
                     self.delegate?.onThumbnailChanged()
                 }
             }