Selaa lähdekoodia

ensure stickers are rendered with correct aspect ratio

cyberta 4 vuotta sitten
vanhempi
commit
8f5aa8df16
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
     public lazy var image: UIImage? = { [weak self] in
         let filetype = dc_msg_get_viewtype(messagePointer)
         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 {
             if path.isFileURL {
                 do {
                 do {
                     let data = try Data(contentsOf: path)
                     let data = try Data(contentsOf: path)