Parcourir la source

ensure stickers are rendered with correct aspect ratio

cyberta il y a 4 ans
Parent
commit
4a6817971a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      DcCore/DcCore/DC/Wrapper.swift

+ 1 - 1
DcCore/DcCore/DC/Wrapper.swift

@@ -945,7 +945,7 @@ public class DcMsg {
 
     public lazy var image: UIImage? = { [weak self] in
         let filetype = dc_msg_get_viewtype(messagePointer)
-        if let path = fileURL, filetype == DC_MSG_IMAGE || filetype == DC_MSG_GIF {
+        if let path = fileURL, filetype == DC_MSG_IMAGE || filetype == DC_MSG_GIF || filetype == DC_MSG_STICKER {
             if path.isFileURL {
                 do {
                     let data = try Data(contentsOf: path)