mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Refresh wallpaper file references.
This commit is contained in:
@@ -52,6 +52,11 @@ struct FileReferenceAccumulator {
|
||||
}, [](const MTPDdocumentEmpty &data) {
|
||||
});
|
||||
}
|
||||
void push(const MTPWallPaper &data) {
|
||||
data.match([&](const MTPDwallPaper &data) {
|
||||
push(data.vdocument);
|
||||
});
|
||||
}
|
||||
void push(const MTPUserProfilePhoto &data) {
|
||||
data.match([&](const MTPDuserProfilePhoto &data) {
|
||||
push(data.vphoto_small);
|
||||
@@ -173,6 +178,12 @@ struct FileReferenceAccumulator {
|
||||
}, [](const MTPDmessages_savedGifsNotModified &data) {
|
||||
});
|
||||
}
|
||||
void push(const MTPaccount_WallPapers &data) {
|
||||
data.match([&](const MTPDaccount_wallPapers &data) {
|
||||
push(data.vwallpapers);
|
||||
}, [](const MTPDaccount_wallPapersNotModified &) {
|
||||
});
|
||||
}
|
||||
|
||||
UpdatedFileReferences result;
|
||||
};
|
||||
@@ -237,4 +248,8 @@ UpdatedFileReferences GetFileReferences(const MTPmessages_SavedGifs &data) {
|
||||
return GetFileReferencesHelper(data);
|
||||
}
|
||||
|
||||
UpdatedFileReferences GetFileReferences(const MTPaccount_WallPapers &data) {
|
||||
return GetFileReferencesHelper(data);
|
||||
}
|
||||
|
||||
} // namespace Data
|
||||
|
Reference in New Issue
Block a user