2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Show patterns with colors in galery.

This commit is contained in:
John Preston
2019-02-05 12:32:54 +03:00
parent aae2101131
commit e7043c4d63
2 changed files with 76 additions and 22 deletions

View File

@@ -3073,9 +3073,7 @@ void Session::setWallpapers(const QVector<MTPWallPaper> &data, int32 hash) {
).get());
for (const auto &paper : data) {
paper.match([&](const MTPDwallPaper &paper) {
if (paper.is_pattern()) {
return;
} else if (const auto parsed = Data::WallPaper::Create(paper)) {
if (const auto parsed = Data::WallPaper::Create(paper)) {
_wallpapers.push_back(*parsed);
}
});