From f820b9328c69efade39b22d2ef455676e93c606b Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Tue, 29 Jun 2021 18:26:12 +0200 Subject: [PATCH] Revert "fix compability of display image again" This reverts commit ec8039154c2a955a5e23cd8ce3d74a91386eb578. --- Classes/LinphoneUI/UIChatBubblePhotoCell.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.m b/Classes/LinphoneUI/UIChatBubblePhotoCell.m index 4c8d77b44..65708331d 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.m +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.m @@ -191,9 +191,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100; NSString *fileType = [NSString stringWithUTF8String:linphone_content_get_type(fileContent)]; NSString *fileName = [NSString stringWithUTF8String:linphone_content_get_name(fileContent)]; NSString *filePath = [[LinphoneManager cacheDirectory] stringByAppendingPathComponent:fileName]; - if (![[NSFileManager defaultManager] fileExistsAtPath:filePath]) { - filePath = [[LinphoneManager cacheDirectory] stringByAppendingPathComponent:(localImage?:(localVideo?:localFile))]; - } + if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) { // already downloaded