Revert "fix compability of display image again"

This reverts commit ec8039154c.
This commit is contained in:
Danmei Chen 2021-06-29 18:26:12 +02:00
parent d73a5ff333
commit f820b9328c

View file

@ -191,9 +191,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100;
NSString *fileType = [NSString stringWithUTF8String:linphone_content_get_type(fileContent)]; NSString *fileType = [NSString stringWithUTF8String:linphone_content_get_type(fileContent)];
NSString *fileName = [NSString stringWithUTF8String:linphone_content_get_name(fileContent)]; NSString *fileName = [NSString stringWithUTF8String:linphone_content_get_name(fileContent)];
NSString *filePath = [[LinphoneManager cacheDirectory] stringByAppendingPathComponent:fileName]; NSString *filePath = [[LinphoneManager cacheDirectory] stringByAppendingPathComponent:fileName];
if (![[NSFileManager defaultManager] fileExistsAtPath:filePath]) {
filePath = [[LinphoneManager cacheDirectory] stringByAppendingPathComponent:(localImage?:(localVideo?:localFile))];
}
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) { if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) {
// already downloaded // already downloaded