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

Show only one placeholder for premium reactions.

This commit is contained in:
John Preston
2022-05-18 17:37:24 +04:00
parent 26d7abe2c9
commit 22613fc204
9 changed files with 70 additions and 27 deletions

View File

@@ -443,8 +443,7 @@ rpl::producer<int> FullReactionsCountValue(
return rpl::single(rpl::empty) | rpl::then(
reactions->updates()
) | rpl::map([=] {
return int(reactions->list(
Data::Reactions::Type::ActiveNonPremium).size());
return int(reactions->list(Data::Reactions::Type::Active).size());
}) | rpl::distinct_until_changed();
}