Marino Faggiana 6 년 전
부모
커밋
bd8f47f882
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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"]]];
                     }