Start gift value information display.

This commit is contained in:
John Preston
2025-08-06 09:30:36 +04:00
parent 2834a83eec
commit 9f5d24bbc9
11 changed files with 429 additions and 20 deletions
+9
View File
@@ -911,6 +911,15 @@ std::optional<Data::StarGift> FromTL(
.onlyAcceptTon = data.is_resale_ton_only(),
.model = *model,
.pattern = *pattern,
.value = (data.vvalue_amount()
? std::make_shared<Data::UniqueGiftValue>(
Data::UniqueGiftValue{
.currency = qs(
data.vvalue_currency().value_or_empty()),
.valuePrice = int64(
data.vvalue_amount().value_or_empty()),
})
: nullptr),
}),
.document = model->document,
.releasedBy = releasedBy,