mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix file references in webpage collages.
This commit is contained in:
parent
ae98e4ae44
commit
b3a255b3f1
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue