mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Fix animated sticker seek when adding to a photo
This commit is contained in:
@@ -1223,8 +1223,10 @@ const CGFloat TGPhotoPaintStickerKeyboardSize = 260.0f;
|
|||||||
NSTimeInterval currentTime = editorController.currentTime;
|
NSTimeInterval currentTime = editorController.currentTime;
|
||||||
__strong TGPhotoStickerEntityView *strongStickerView = weakStickerView;
|
__strong TGPhotoStickerEntityView *strongStickerView = weakStickerView;
|
||||||
if (strongStickerView != nil) {
|
if (strongStickerView != nil) {
|
||||||
[strongStickerView seekTo:currentTime];
|
if (!isnan(currentTime)) {
|
||||||
[strongStickerView play];
|
[strongStickerView seekTo:currentTime];
|
||||||
|
[strongStickerView play];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user