mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 08:44:38 +00:00
Fix file references in webpage collages.
This commit is contained in:
parent
ae98e4ae44
commit
b3a255b3f1
@ -33,6 +33,12 @@ struct FileReferenceAccumulator {
|
||||
}, [](const MTPDdocumentEmpty &data) {
|
||||
});
|
||||
}
|
||||
void push(const MTPPage &data) {
|
||||
data.match([&](const auto &data) {
|
||||
push(data.vphotos());
|
||||
push(data.vdocuments());
|
||||
});
|
||||
}
|
||||
void push(const MTPWallPaper &data) {
|
||||
data.match([&](const MTPDwallPaper &data) {
|
||||
push(data.vdocument());
|
||||
@ -57,6 +63,9 @@ struct FileReferenceAccumulator {
|
||||
if (const auto photo = data.vphoto()) {
|
||||
push(*photo);
|
||||
}
|
||||
if (const auto page = data.vcached_page()) {
|
||||
push(*page);
|
||||
}
|
||||
}, [](const auto &data) {
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user