mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-23 04:26:51 +01:00
Fix compiler warnings
This commit is contained in:
parent
ffcc85392c
commit
faa723716f
@ -6812,8 +6812,7 @@ void Client::on_update(object_ptr<td_api::Object> result) {
|
|||||||
auto group_info = add_group_info(group_id);
|
auto group_info = add_group_info(group_id);
|
||||||
group_info->photo = std::move(full_info->photo_);
|
group_info->photo = std::move(full_info->photo_);
|
||||||
group_info->description = std::move(full_info->description_);
|
group_info->description = std::move(full_info->description_);
|
||||||
group_info->invite_link = std::move(
|
group_info->invite_link = full_info->invite_link_ != nullptr ? std::move(full_info->invite_link_->invite_link_) : td::string();
|
||||||
full_info->invite_link_ != nullptr ? std::move(full_info->invite_link_->invite_link_) : td::string());
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case td_api::updateSupergroup::ID: {
|
case td_api::updateSupergroup::ID: {
|
||||||
@ -6829,8 +6828,7 @@ void Client::on_update(object_ptr<td_api::Object> result) {
|
|||||||
auto supergroup_info = add_supergroup_info(supergroup_id);
|
auto supergroup_info = add_supergroup_info(supergroup_id);
|
||||||
supergroup_info->photo = std::move(full_info->photo_);
|
supergroup_info->photo = std::move(full_info->photo_);
|
||||||
supergroup_info->description = std::move(full_info->description_);
|
supergroup_info->description = std::move(full_info->description_);
|
||||||
supergroup_info->invite_link = std::move(
|
supergroup_info->invite_link = full_info->invite_link_ != nullptr ? std::move(full_info->invite_link_->invite_link_) : td::string();
|
||||||
full_info->invite_link_ != nullptr ? std::move(full_info->invite_link_->invite_link_) : td::string());
|
|
||||||
supergroup_info->sticker_set_id = full_info->sticker_set_id_;
|
supergroup_info->sticker_set_id = full_info->sticker_set_id_;
|
||||||
supergroup_info->can_set_sticker_set = full_info->can_set_sticker_set_;
|
supergroup_info->can_set_sticker_set = full_info->can_set_sticker_set_;
|
||||||
supergroup_info->is_all_history_available = full_info->is_all_history_available_;
|
supergroup_info->is_all_history_available = full_info->is_all_history_available_;
|
||||||
|
Loading…
Reference in New Issue
Block a user