Update has_webp_thumbnail.

GitOrigin-RevId: 7ec370bddc1f66ea1caae251d43542d5cd33c5d3
This commit is contained in:
levlam 2019-07-15 04:26:41 +03:00
parent 5b032ba290
commit f53f73a34e

View File

@ -1231,11 +1231,8 @@ FileId StickersManager::on_get_sticker(unique_ptr<Sticker> new_sticker, bool rep
}
bool StickersManager::has_webp_thumbnail(const tl_object_ptr<telegram_api::documentAttributeSticker> &sticker) {
if (sticker == nullptr) {
return false;
}
return get_sticker_set_id(sticker->stickerset_) != 0;
// server tries to always replace user-provided thumbnail with server-side webp thumbnail
return true;
}
std::pair<int64, FileId> StickersManager::on_get_sticker_document(