From 78492386c4e019c5580493ac8f2d56c3950596f2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 29 Oct 2020 15:21:49 +0300 Subject: [PATCH] Fix pinned bar consecutive animations. --- Telegram/SourceFiles/ui/chat/message_bar.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/chat/message_bar.cpp b/Telegram/SourceFiles/ui/chat/message_bar.cpp index 8b4ec1d59..332d46c25 100644 --- a/Telegram/SourceFiles/ui/chat/message_bar.cpp +++ b/Telegram/SourceFiles/ui/chat/message_bar.cpp @@ -341,8 +341,9 @@ void MessageBar::paint(Painter &p) { if (!_image.isNull()) { p.drawPixmap(image, _image); } - } else if (!_animation->imageFrom.isNull() - || !_animation->imageTo.isNull()) { + } else if (!_animation->imageTo.isNull() + || (!_animation->imageFrom.isNull() + && _animation->imageShown.animating())) { const auto rect = [&] { if (!_animation->imageShown.animating()) { return image;