nayooti пре 5 година
родитељ
комит
cfbd519d6b
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      deltachat-ios/View/Cell/GalleryCell.swift

+ 3 - 2
deltachat-ios/View/Cell/GalleryCell.swift

@@ -1,5 +1,6 @@
 import UIKit
 import UIKit
 import DcCore
 import DcCore
+import SDWebImage
 
 
 
 
 class GalleryCell: UICollectionViewCell {
 class GalleryCell: UICollectionViewCell {
@@ -31,7 +32,7 @@ class GalleryCell: UICollectionViewCell {
     }
     }
 
 
     func update(msg: DcMsg) {
     func update(msg: DcMsg) {
-        guard let viewtype = msg.viewtype else {
+        guard let viewtype = msg.viewtype, let fileUrl = msg.fileURL else {
             return
             return
         }
         }
 
 
@@ -41,7 +42,7 @@ class GalleryCell: UICollectionViewCell {
         case .video:
         case .video:
             break
             break
         case .gif:
         case .gif:
-            break
+            imageView.sd_setImage(with: fileUrl, placeholderImage: nil)
         default:
         default:
             break
             break
         }
         }