Marino Faggiana hace 6 años
padre
commit
bd8f47f882
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      iOSClient/Main/CCDetail.m

+ 3 - 3
iOSClient/Main/CCDetail.m

@@ -468,7 +468,7 @@
                     
                 } else {
                     
-                    if ([metadata.sessionError length] > 0 ) {
+                    if (metadata.status == k_metadataStatusDownloadError) {
                         
                         [self.photos replaceObjectAtIndex:index withObject:[MWPhoto photoWithImage:[UIImage imageNamed:@"filePreviewError"]]];
                     }
@@ -493,7 +493,7 @@
                     
                 } else {
                     
-                    if ([metadata.sessionError length] > 0 ) {
+                    if (metadata.status == k_metadataStatusDownloadError) {
                         
                         [self.photos replaceObjectAtIndex:index withObject:[MWPhoto photoWithImage:[UIImage imageNamed:@"filePreviewError"]]];
                     }
@@ -526,7 +526,7 @@
                     
                 } else {
                     
-                    if ([metadata.sessionError length] > 0 ) {
+                    if (metadata.status == k_metadataStatusDownloadError) {
                         
                         [self.photos replaceObjectAtIndex:index withObject:[MWPhoto photoWithImage:[UIImage imageNamed:@"filePreviewError"]]];
                     }