Outgoing Messages Refactoring:

- Apply the MatrixKit changes in the `MXKAttachment` class
This commit is contained in:
giomfo
2016-12-16 18:24:24 +01:00
parent 5ceef8cc6a
commit 064856c33d
3 changed files with 20 additions and 15 deletions
@@ -76,13 +76,7 @@
}
NSString *url = bubbleData.attachment.thumbnailURL;
UIImage *preview = nil;
if (bubbleData.attachment.previewURL)
{
NSString *cacheFilePath = [MXMediaManager cachePathForMediaWithURL:bubbleData.attachment.previewURL andType:mimetype inFolder:self.attachmentImageView.mediaFolder];
preview = [MXMediaManager loadPictureFromFilePath:cacheFilePath];
}
UIImage *preview = bubbleData.attachment.previewImage;
if (url.length || preview)
{