mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-08 13:59:29 +00:00
Fixed spelling of thumbnail in a few spots.
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - Thubmnails / Image Representation
|
||||
#pragma mark - Thumbnails / Image Representation
|
||||
|
||||
- (UIImage *)imageRepresentation {
|
||||
if ([self.contentType rangeOfString:@"image"].location != NSNotFound && self.filename ) {
|
||||
@@ -185,9 +185,9 @@
|
||||
CGSize scaledSize = CGSizeApplyAffineTransform(size, CGAffineTransformMakeScale(scale, scale));
|
||||
UIImage *thumbnail = bit_imageToFitSize(image, scaledSize, YES) ;
|
||||
|
||||
UIImage *scaledTumbnail = [UIImage imageWithCGImage:thumbnail.CGImage scale:scale orientation:thumbnail.imageOrientation];
|
||||
UIImage *scaledThumbnail = [UIImage imageWithCGImage:thumbnail.CGImage scale:scale orientation:thumbnail.imageOrientation];
|
||||
if (thumbnail) {
|
||||
[self.thumbnailRepresentations setObject:scaledTumbnail forKey:cacheKey];
|
||||
[self.thumbnailRepresentations setObject:scaledThumbnail forKey:cacheKey];
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user