Browse Source

Merge pull request #1350 from deltachat/share_panorama

reduce memory consumption of share extension
bjoern 3 years ago
parent
commit
22d79c3cb7
1 changed files with 1 additions and 1 deletions
  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()
                 }
             }