Fix compiler warnings

This commit is contained in:
Andrea Cavalli 2024-02-11 12:26:52 +01:00
parent ffcc85392c
commit faa723716f

View File

@ -6812,8 +6812,7 @@ void Client::on_update(object_ptr<td_api::Object> result) {
auto group_info = add_group_info(group_id);
group_info->photo = std::move(full_info->photo_);
group_info->description = std::move(full_info->description_);
group_info->invite_link = std::move(
full_info->invite_link_ != nullptr ? std::move(full_info->invite_link_->invite_link_) : td::string());
group_info->invite_link = full_info->invite_link_ != nullptr ? std::move(full_info->invite_link_->invite_link_) : td::string();
break;
}
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);
supergroup_info->photo = std::move(full_info->photo_);
supergroup_info->description = std::move(full_info->description_);
supergroup_info->invite_link = std::move(
full_info->invite_link_ != nullptr ? std::move(full_info->invite_link_->invite_link_) : td::string());
supergroup_info->invite_link = 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->can_set_sticker_set = full_info->can_set_sticker_set_;
supergroup_info->is_all_history_available = full_info->is_all_history_available_;