2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Support animated stickers in inline results.

This commit is contained in:
John Preston
2019-07-02 15:41:50 +02:00
parent 76630528f7
commit 848ea16eef
7 changed files with 57 additions and 25 deletions

View File

@@ -524,9 +524,8 @@ void StickerSetBox::Inner::setupLottie(int index) {
const auto animation = element.animated.get();
animation->updates(
) | rpl::start_with_next_error([=](Lottie::Update update) {
this->update();
}, [=](Lottie::Error error) {
) | rpl::start_with_next([=] {
update();
}, lifetime());
}