aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/StarGift.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-01-30 17:34:40 +0300
committerlevlam <levlam@telegram.org>2025-01-30 17:34:40 +0300
commit36704da27131d164c777aa51c1f1cc853222250d (patch)
tree89c062359ee6d9f52660bc18606ecd3ef42a0c78 /td/telegram/StarGift.cpp
parentce17020f661c42c3e149ecde655ddfe85e849949 (diff)
Add upgradedGift.gift_address.
Diffstat (limited to 'td/telegram/StarGift.cpp')
-rw-r--r--td/telegram/StarGift.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/td/telegram/StarGift.cpp b/td/telegram/StarGift.cpp
index efb15c18c..3cba6f222 100644
--- a/td/telegram/StarGift.cpp
+++ b/td/telegram/StarGift.cpp
@@ -36,6 +36,7 @@ StarGift::StarGift(Td *td, telegram_api::object_ptr<telegram_api::StarGift> &&st
}
owner_name_ = std::move(star_gift->owner_name_);
owner_address_ = std::move(star_gift->owner_address_);
+ gift_address_ = std::move(star_gift->gift_address_);
unique_availability_issued_ = star_gift->availability_issued_;
unique_availability_total_ = star_gift->availability_total_;
for (auto &attribute : star_gift->attributes_) {
@@ -144,7 +145,7 @@ td_api::object_ptr<td_api::upgradedGift> StarGift::get_upgraded_gift_object(Td *
return td_api::make_object<td_api::upgradedGift>(
id_, title_, slug_, num_, unique_availability_issued_, unique_availability_total_,
!owner_dialog_id_.is_valid() ? nullptr : get_message_sender_object(td, owner_dialog_id_, "upgradedGift"),
- owner_address_, owner_name_, model_.get_upgraded_gift_model_object(td),
+ owner_address_, owner_name_, gift_address_, model_.get_upgraded_gift_model_object(td),
pattern_.get_upgraded_gift_symbol_object(td), backdrop_.get_upgraded_gift_backdrop_object(),
original_details_.get_upgraded_gift_original_details_object(td));
}
@@ -171,7 +172,8 @@ bool operator==(const StarGift &lhs, const StarGift &rhs) {
lhs.is_unique_ == rhs.is_unique_ && lhs.model_ == rhs.model_ && lhs.pattern_ == rhs.pattern_ &&
lhs.backdrop_ == rhs.backdrop_ && lhs.original_details_ == rhs.original_details_ && lhs.title_ == rhs.title_ &&
lhs.slug_ == rhs.slug_ && lhs.owner_dialog_id_ == rhs.owner_dialog_id_ &&
- lhs.owner_address_ == rhs.owner_address_ && lhs.owner_name_ == rhs.owner_name_ && lhs.num_ == rhs.num_ &&
+ lhs.owner_address_ == rhs.owner_address_ && lhs.owner_name_ == rhs.owner_name_ &&
+ lhs.gift_address_ == rhs.gift_address_ && lhs.num_ == rhs.num_ &&
lhs.unique_availability_issued_ == rhs.unique_availability_issued_ &&
lhs.unique_availability_total_ == rhs.unique_availability_total_;
}