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

Request top and recent reactions.

This commit is contained in:
John Preston
2022-08-24 11:42:01 +03:00
parent f8c962712b
commit 31db1804c8
11 changed files with 348 additions and 75 deletions

View File

@@ -906,10 +906,10 @@ void SetupMessages(
const auto &reactions = controller->session().data().reactions();
auto idValue = rpl::single(
reactions.favorite()
reactions.favoriteId()
) | rpl::then(
reactions.updates() | rpl::map([=] {
return controller->session().data().reactions().favorite();
reactions.favoriteUpdates() | rpl::map([=] {
return controller->session().data().reactions().favoriteId();
})
) | rpl::filter([](const Data::ReactionId &id) {
return !id.empty();