Browse Source

fix downloadThumbnail

Marino Faggiana 6 years ago
parent
commit
a0df33aaa3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Main/NCMainCommon.swift

+ 1 - 1
iOSClient/Main/NCMainCommon.swift

@@ -1142,7 +1142,7 @@ class NCNetworkingMain: NSObject, CCNetworkingDelegate {
                     if view is UICollectionView && NCMainCommon.sharedInstance.isValidIndexPath(indexPath, view: view) {
                         (view as! UICollectionView).reloadItems(at: [indexPath])
                     }
-                    if view is UITableView && CCUtility.fileProviderStorageIconExists(metadata.fileID, fileNameView: metadata.fileName){
+                    if view is UITableView && CCUtility.fileProviderStorageIconExists(metadata.fileID, fileNameView: metadata.fileName) && NCMainCommon.sharedInstance.isValidIndexPath(indexPath, view: view) {
                         (view as! UITableView).reloadRows(at: [indexPath], with: UITableView.RowAnimation.none)
                     }
                 }