Explorar o código

Merge pull request #1350 from deltachat/share_panorama

reduce memory consumption of share extension
bjoern %!s(int64=3) %!d(string=hai) anos
pai
achega
22d79c3cb7
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: self.thumbnailSize)
                     self.delegate?.onThumbnailChanged()
                 }
             }