Procházet zdrojové kódy

reduce memory consumption of share extension by scaling down image thumbnail

cyberta před 3 roky
rodič
revize
bf2bb2c4e7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()
                 }
             }