mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Support new ('modern') API file locations.
This commit is contained in:
@@ -238,7 +238,7 @@ void WebPageData::replaceDocumentGoodThumbnail() {
|
||||
return;
|
||||
}
|
||||
const auto &location = photo->large()->location();
|
||||
if (!location.isNull()) {
|
||||
if (location.valid()) {
|
||||
document->replaceGoodThumbnail(
|
||||
std::make_unique<Images::StorageSource>(
|
||||
location,
|
||||
|
Reference in New Issue
Block a user