Ver Fonte

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana há 2 anos atrás
pai
commit
237a98fdd0

+ 3 - 0
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -533,6 +533,9 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         else {
             return
         }
+        if metadata.livePhoto && metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue {
+            return
+        }
         let (indexPath, sameSections) = dataSource.reloadMetadata(ocId: metadata.ocId, ocIdTemp: ocIdTemp)
         if let indexPath = indexPath {
             if sameSections && (indexPath.section < collectionView.numberOfSections && indexPath.row < collectionView.numberOfItems(inSection: indexPath.section)) {