2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Introduce premium reactions preview box.

This commit is contained in:
John Preston
2022-05-27 19:42:05 +04:00
parent 1a2a65ff19
commit 2362d6c6fb
12 changed files with 832 additions and 332 deletions

View File

@@ -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;
});