Do not allow encrypted and web animated stickers.
GitOrigin-RevId: 78ea903caa414056180ed19c7a1a3f3873753b4a
This commit is contained in:
parent
865ccc7560
commit
8949e040b8
@ -282,8 +282,6 @@ Document DocumentsManager::on_get_document(RemoteDocument remote_document, Dialo
|
||||
return {};
|
||||
}
|
||||
|
||||
fix_animated_sticker_type();
|
||||
|
||||
if (document_type != Document::Type::VoiceNote) {
|
||||
thumbnail = get_secret_thumbnail_photo_size(td_->file_manager_.get(), std::move(document->thumb_),
|
||||
owner_dialog_id, document->thumb_w_, document->thumb_h_);
|
||||
@ -331,8 +329,6 @@ Document DocumentsManager::on_get_document(RemoteDocument remote_document, Dialo
|
||||
default:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
fix_animated_sticker_type();
|
||||
}
|
||||
|
||||
LOG(DEBUG) << "Receive document with id = " << id << " of type " << document_type;
|
||||
|
Reference in New Issue
Block a user