Add fake sticker attribute to broken effects.
This commit is contained in:
parent
bb642b74b6
commit
4079658376
@ -3049,10 +3049,15 @@ std::pair<int64, FileId> StickersManager::on_get_sticker_document(tl_object_ptr<
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sticker == nullptr && custom_emoji == nullptr) {
|
if (sticker == nullptr && custom_emoji == nullptr) {
|
||||||
if (document->mime_type_ != "application/x-bad-tgsticker") {
|
if (document->id_ == 5310062947890890996 || document->id_ == 5229108402113745134) {
|
||||||
LOG(ERROR) << "Have no attributeSticker in sticker " << to_string(document);
|
sticker = telegram_api::make_object<telegram_api::documentAttributeSticker>(
|
||||||
|
0, false /*ignored*/, string(), telegram_api::make_object<telegram_api::inputStickerSetEmpty>(), nullptr);
|
||||||
|
} else {
|
||||||
|
if (document->mime_type_ != "application/x-bad-tgsticker") {
|
||||||
|
LOG(ERROR) << "Have no attributeSticker in sticker " << to_string(document);
|
||||||
|
}
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto format = get_sticker_format_by_mime_type(document->mime_type_);
|
auto format = get_sticker_format_by_mime_type(document->mime_type_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user