2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme on layer 107.

This commit is contained in:
John Preston
2019-12-29 14:41:10 +03:00
parent d47c138f23
commit 66204bae95
8 changed files with 49 additions and 20 deletions

View File

@@ -3721,11 +3721,9 @@ void Session::setWallpapers(const QVector<MTPWallPaper> &data, int32 hash) {
QByteArray(),
"JPG")));
for (const auto &paper : data) {
paper.match([&](const MTPDwallPaper &paper) {
if (const auto parsed = Data::WallPaper::Create(paper)) {
_wallpapers.push_back(*parsed);
}
});
if (const auto parsed = Data::WallPaper::Create(paper)) {
_wallpapers.push_back(*parsed);
}
}
const auto defaultFound = ranges::find_if(
_wallpapers,