Fix warnings.

This commit is contained in:
levlam 2023-02-04 09:55:11 +03:00
parent 2f46132aa2
commit 9bf492dbc0
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ unique_ptr<StickerPhotoSize> StickerPhotoSize::get_sticker_photo_size(
for (auto &color : result->background_colors_) {
color &= 0xFFFFFF;
}
return std::move(result);
return result;
}
td_api::object_ptr<td_api::chatPhotoSticker> StickerPhotoSize::get_chat_photo_sticker_object() const {

View File

@ -7189,9 +7189,9 @@ void Td::on_request(uint64 id, td_api::searchStickers &request) {
if (sticker_type == StickerType::Regular) {
// legacy
if (request.emojis_ == "⭐️⭐️") {
request.emojis_ == "⭐️";
request.emojis_ = "⭐️";
} else if (request.emojis_ == "📂⭐️") {
request.emojis_ == "📂";
request.emojis_ = "📂";
}
}
stickers_manager_->search_stickers(sticker_type, std::move(request.emojis_), request.limit_, std::move(promise));