mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Image nodes call fetchData when image source is updated while in fetch range
This commit is contained in:
@@ -287,6 +287,9 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
|
|||||||
|
|
||||||
_imageIdentifiers = [imageIdentifiers copy];
|
_imageIdentifiers = [imageIdentifiers copy];
|
||||||
OSSpinLockUnlock(&_imageIdentifiersLock);
|
OSSpinLockUnlock(&_imageIdentifiersLock);
|
||||||
|
if (self.interfaceState & ASInterfaceStateFetchData) {
|
||||||
|
[self fetchData];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)reloadImageIdentifierSources
|
- (void)reloadImageIdentifierSources
|
||||||
|
|||||||
@@ -82,8 +82,9 @@
|
|||||||
if (reset || _URL == nil)
|
if (reset || _URL == nil)
|
||||||
self.image = _defaultImage;
|
self.image = _defaultImage;
|
||||||
|
|
||||||
if (self.nodeLoaded && self.layer.superlayer)
|
if (self.interfaceState & ASInterfaceStateFetchData) {
|
||||||
[self _lazilyLoadImageIfNecessary];
|
[self fetchData];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSURL *)URL
|
- (NSURL *)URL
|
||||||
|
|||||||
Reference in New Issue
Block a user