Various fixes

This commit is contained in:
Ilya Laktyushin
2023-12-20 21:26:03 +04:00
parent 15cb8f9523
commit 8659a5d6ea
3 changed files with 3 additions and 11 deletions

View File

@@ -329,7 +329,7 @@ final class ThemeGridControllerNode: ASDisplayNode {
if let strongSelf = self, !strongSelf.currentState.editing {
let entries = previousEntries.with { $0 }
if let entries = entries, !entries.isEmpty {
let wallpapers = entries.map { $0.wallpaper }
let wallpapers = entries.map { $0.wallpaper }.filter { !$0.isColorOrGradient }
var options = WallpaperPresentationOptions()
if wallpaper == strongSelf.presentationData.chatWallpaper, let settings = wallpaper.settings {