mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +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];
|
||||
OSSpinLockUnlock(&_imageIdentifiersLock);
|
||||
if (self.interfaceState & ASInterfaceStateFetchData) {
|
||||
[self fetchData];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)reloadImageIdentifierSources
|
||||
|
||||
@@ -82,8 +82,9 @@
|
||||
if (reset || _URL == nil)
|
||||
self.image = _defaultImage;
|
||||
|
||||
if (self.nodeLoaded && self.layer.superlayer)
|
||||
[self _lazilyLoadImageIfNecessary];
|
||||
if (self.interfaceState & ASInterfaceStateFetchData) {
|
||||
[self fetchData];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSURL *)URL
|
||||
|
||||
Reference in New Issue
Block a user