marinofaggiana 4 years ago
parent
commit
e76fc43101
1 changed files with 5 additions and 0 deletions
  1. 5 0
      iOSClient/Main/NCCollectionViewCommon.swift

+ 5 - 0
iOSClient/Main/NCCollectionViewCommon.swift

@@ -1179,6 +1179,11 @@ extension NCCollectionViewCommon: UICollectionViewDelegate {
             
         } else {
             
+            if metadata.typeFile == k_metadataTypeFile_video {
+                performSegue(withIdentifier: "segueDetail", sender: self)
+                return
+            }
+            
             if metadata.typeFile == k_metadataTypeFile_document && NCUtility.shared.isDirectEditing(account: metadata.account, contentType: metadata.contentType) != nil {
                 if NCCommunication.shared.isNetworkReachable() {
                     performSegue(withIdentifier: "segueDetail", sender: self)