mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
Upgrades to latest PINRemoteImage which should fix GIF rendering. (#3057)
This commit is contained in:
parent
4e779eeed8
commit
75fddb1f77
@ -46,7 +46,7 @@ Pod::Spec.new do |spec|
|
|||||||
spec.subspec 'PINRemoteImage' do |pin|
|
spec.subspec 'PINRemoteImage' do |pin|
|
||||||
# Note: The core.prefix_header_file includes setup of PIN_REMOTE_IMAGE, so the line below could be removed.
|
# Note: The core.prefix_header_file includes setup of PIN_REMOTE_IMAGE, so the line below could be removed.
|
||||||
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
|
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
|
||||||
pin.dependency 'PINRemoteImage/iOS', '= 3.0.0-beta.7'
|
pin.dependency 'PINRemoteImage/iOS', '= 3.0.0-beta.8'
|
||||||
pin.dependency 'PINRemoteImage/PINCache'
|
pin.dependency 'PINRemoteImage/PINCache'
|
||||||
pin.dependency 'AsyncDisplayKit/Core'
|
pin.dependency 'AsyncDisplayKit/Core'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -164,8 +164,8 @@ static ASPINRemoteImageDownloader *sharedDownloader = nil;
|
|||||||
- (id <ASImageContainerProtocol>)synchronouslyFetchedCachedImageWithURL:(NSURL *)URL;
|
- (id <ASImageContainerProtocol>)synchronouslyFetchedCachedImageWithURL:(NSURL *)URL;
|
||||||
{
|
{
|
||||||
PINRemoteImageManager *manager = [self sharedPINRemoteImageManager];
|
PINRemoteImageManager *manager = [self sharedPINRemoteImageManager];
|
||||||
NSString *key = [manager cacheKeyForURL:URL processorKey:nil];
|
PINRemoteImageManagerResult *result = [manager synchronousImageFromCacheWithURL:URL processorKey:nil options:PINRemoteImageManagerDownloadOptionsSkipDecode];
|
||||||
PINRemoteImageManagerResult *result = [manager synchronousImageFromCacheWithCacheKey:key options:PINRemoteImageManagerDownloadOptionsSkipDecode];
|
|
||||||
#if PIN_ANIMATED_AVAILABLE
|
#if PIN_ANIMATED_AVAILABLE
|
||||||
if (result.alternativeRepresentation) {
|
if (result.alternativeRepresentation) {
|
||||||
return result.alternativeRepresentation;
|
return result.alternativeRepresentation;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user