Rebuild slider when relevant values change.

This commit is contained in:
John Preston
2025-11-20 20:46:53 +04:00
parent 8c1844b1c0
commit 19225c7dd3
6 changed files with 177 additions and 101 deletions

View File

@@ -51,12 +51,14 @@ rpl::producer<GiftAuctionState> GiftAuctions::state(const QString &slug) {
void GiftAuctions::apply(const MTPDupdateStarGiftAuctionState &data) {
if (const auto entry = find(data.vgift_id().v)) {
apply(entry, data.vstate());
entry->changes.fire({});
}
}
void GiftAuctions::apply(const MTPDupdateStarGiftAuctionUserState &data) {
if (const auto entry = find(data.vgift_id().v)) {
apply(entry, data.vuser_state());
entry->changes.fire({});
}
}