Version 1.5.2: Fix video message duration.

This commit is contained in:
John Preston 2018-12-13 15:33:38 +04:00
parent 7378ad00b0
commit 4836173fe6
1 changed files with 5 additions and 9 deletions

View File

@ -2256,17 +2256,13 @@ void HistoryGif::draw(Painter &p, const QRect &r, TextSelection selection, TimeM
: false; : false;
const auto animating = reader && reader->started(); const auto animating = reader && reader->started();
if (!animating || item->id < 0) { if ((!animating || item->id < 0) && displayLoading) {
if (displayLoading) { ensureAnimation();
ensureAnimation(); if (!_animation->radial.animating()) {
if (!_animation->radial.animating()) { _animation->radial.start(dataProgress());
_animation->radial.start(dataProgress());
}
} }
updateStatusText();
} else if (playingVideo) {
updateStatusText();
} }
updateStatusText();
auto radial = isRadialAnimation(ms); auto radial = isRadialAnimation(ms);
if (bubble) { if (bubble) {