aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/StarGift.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-01-09 16:35:40 +0300
committerlevlam <levlam@telegram.org>2025-01-09 16:35:40 +0300
commit943cfa6c4e5a131ed7df9406fa51fba985dc191c (patch)
tree1fac89201857b6b84ee53e33ba1b68bbb0282612 /td/telegram/StarGift.cpp
parent90caf2dea40c22c8dd6f37d477a3295db75c2db8 (diff)
Update layer to 198.
Diffstat (limited to 'td/telegram/StarGift.cpp')
-rw-r--r--td/telegram/StarGift.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/td/telegram/StarGift.cpp b/td/telegram/StarGift.cpp
index 46f3b5e15..4caa11691 100644
--- a/td/telegram/StarGift.cpp
+++ b/td/telegram/StarGift.cpp
@@ -31,7 +31,10 @@ StarGift::StarGift(Td *td, telegram_api::object_ptr<telegram_api::StarGift> &&st
title_ = std::move(star_gift->title_);
slug_ = std::move(star_gift->slug_);
num_ = star_gift->num_;
- owner_user_id_ = UserId(star_gift->owner_id_);
+ DialogId owner_dialog_id(star_gift->owner_id_);
+ if (owner_dialog_id.get_type() == DialogType::User) {
+ owner_user_id_ = owner_dialog_id.get_user_id();
+ }
owner_name_ = std::move(star_gift->owner_name_);
unique_availability_issued_ = star_gift->availability_issued_;
unique_availability_total_ = star_gift->availability_total_;