mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Introduce premium reactions preview box.
This commit is contained in:
@@ -336,7 +336,6 @@ std::optional<Reaction> Reactions::parse(const MTPAvailableReaction &entry) {
|
||||
}
|
||||
const auto selectAnimation = _owner->processDocument(
|
||||
data.vselect_animation());
|
||||
static auto test = 0; AssertIsDebug();
|
||||
return known
|
||||
? std::make_optional(Reaction{
|
||||
.emoji = emoji,
|
||||
@@ -357,7 +356,7 @@ std::optional<Reaction> Reactions::parse(const MTPAvailableReaction &entry) {
|
||||
*data.varound_animation()).get()
|
||||
: nullptr),
|
||||
.active = !data.is_inactive(),
|
||||
.premium = (data.is_premium() || ((++test) % 2)),
|
||||
.premium = data.is_premium(),
|
||||
})
|
||||
: std::nullopt;
|
||||
});
|
||||
|
Reference in New Issue
Block a user