Browse Source

fix downloadThumbnail

Marino Faggiana 6 năm trước cách đây
mục cha
commit
a0df33aaa3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)
                     }
                 }