Sfoglia il codice sorgente

show thumbnail for videos in gallery

nayooti 5 anni fa
parent
commit
aa1ca85a64
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      deltachat-ios/View/Cell/GalleryCell.swift

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

@@ -40,10 +40,11 @@ class GalleryCell: UICollectionViewCell {
         case .image:
             imageView.image = msg.image
         case .video:
-            break
+            imageView.image = DcUtils.generateThumbnailFromVideo(url: fileUrl)
         case .gif:
             imageView.sd_setImage(with: fileUrl, placeholderImage: nil)
         default:
+            safe_fatalError("unsupported viewtype - viewtype \(viewtype) not supported.")
             break
         }
     }