mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge pull request #1398 from facebook/Placeholders
[ASDisplayNode] Placeholders should always be recreated if returning to cleared nodes, and remain until ASNetwork/MultiplexImageNode finish loading their image from the network.
This commit is contained in:
@@ -265,6 +265,11 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL)placeholderShouldPersist
|
||||
{
|
||||
return (self.image == nil && self.imageIdentifiers.count > 0);
|
||||
}
|
||||
|
||||
/* displayWillStart in ASNetworkImageNode has a very similar implementation. Changes here are likely necessary
|
||||
in ASNetworkImageNode as well. */
|
||||
- (void)displayWillStart
|
||||
|
||||
Reference in New Issue
Block a user