2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix caching of webm stickers in local storage.

This commit is contained in:
John Preston
2022-01-25 01:07:59 +03:00
parent f1d9cca119
commit 1a3a0fb124
2 changed files with 9 additions and 3 deletions

View File

@@ -1400,6 +1400,10 @@ TimeId DocumentData::getDuration() const {
return std::max(voice->duration, 0);
} else if (isAnimation() || isVideoFile()) {
return std::max(_duration, 0);
} else if (const auto sticker = this->sticker()) {
if (sticker->isWebm()) {
return std::max(_duration, 0);
}
}
return -1;
}