mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
If the animated image is ready, start animating it as soon as it's set (#1724)
This commit is contained in:
@@ -45,6 +45,10 @@ NSString *const ASAnimatedImageDefaultRunLoopMode = NSRunLoopCommonModes;
|
||||
};
|
||||
}
|
||||
|
||||
if (animatedImage.playbackReady) {
|
||||
[self animatedImageFileReady];
|
||||
}
|
||||
|
||||
animatedImage.playbackReadyCallback = ^{
|
||||
[weakSelf animatedImageFileReady];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user