2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Play premium sticker effects.

This commit is contained in:
John Preston
2022-04-22 20:23:47 +04:00
parent d87c9c72fb
commit 935fb79c52
15 changed files with 168 additions and 40 deletions

View File

@@ -414,6 +414,7 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
| Flag::Scam
| Flag::Fake
| Flag::BotInlineGeo
| Flag::Premium
| Flag::Support
| (!minimal
? Flag::Contact
@@ -2827,7 +2828,7 @@ void Session::documentApplyFields(
? Images::FromVideoSize(_session, data, *videoThumbnailSize)
: ImageWithLocation();
const auto isPremiumSticker = videoThumbnailSize
&& (videoThumbnailSize->c_videoSize().vtype().v == "fp");
&& (videoThumbnailSize->c_videoSize().vtype().v == "f");
documentApplyFields(
document,
data.vaccess_hash().v,