Ver Fonte

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

cyberta há 3 anos atrás
pai
commit
16a7c1284e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      DcShare/Helper/ShareAttachment.swift

+ 1 - 1
DcShare/Helper/ShareAttachment.swift

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