2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow settings gift price in TON.

This commit is contained in:
John Preston
2025-07-29 17:15:48 +04:00
parent 985324ac12
commit aa499eab61
14 changed files with 539 additions and 321 deletions

View File

@@ -895,9 +895,10 @@ std::optional<Data::StarGift> FromTL(
? peerFromMTP(*data.vowner_id())
: PeerId()),
.releasedBy = releasedBy,
.number = data.vnum().v,
.nanoTonForResale = FindTonForResale(data.vresell_amount()),
.starsForResale = FindStarsForResale(data.vresell_amount()),
.tonForResale = FindTonForResale(data.vresell_amount()),
.number = data.vnum().v,
.onlyAcceptTon = data.is_resale_ton_only(),
.model = *model,
.pattern = *pattern,
}),