Allow buying reselling gifts.

This commit is contained in:
John Preston
2025-04-18 18:41:13 +04:00
parent 94e0ac3f54
commit c726bef740
14 changed files with 214 additions and 45 deletions
+1 -1
View File
@@ -853,10 +853,10 @@ std::optional<Data::StarGift> FromTL(
? peerFromMTP(*data.vowner_id())
: PeerId()),
.number = data.vnum().v,
.starsForResale = int(data.vresell_stars().value_or_empty()),
.model = *model,
.pattern = *pattern,
}),
.starsResellMin = int64(data.vresell_stars().value_or_empty()),
.document = model->document,
.limitedLeft = (total - data.vavailability_issued().v),
.limitedCount = total,