Fix warnings.
This commit is contained in:
parent
2f46132aa2
commit
9bf492dbc0
@ -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 {
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user