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