Explorar o código

reduce memory consumption of share extension by scaling down image thumbnail

cyberta %!s(int64=3) %!d(string=hai) anos
pai
achega
bf2bb2c4e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
+                    self.imageThumbnail = result.scaleDownImage(toMax: 96)
                     self.delegate?.onThumbnailChanged()
                 }
             }