Преглед изворни кода

ensure stickers are rendered with correct aspect ratio

cyberta пре 4 година
родитељ
комит
4a6817971a
1 измењених фајлова са 1 додато и 1 уклоњено
  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)