Fix more warnings

This commit is contained in:
Ali
2021-08-05 12:37:57 +02:00
parent 6b3103bafc
commit 0a9be38425
83 changed files with 693 additions and 930 deletions

View File

@@ -372,12 +372,12 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
var backgroundColors: [UInt32] = []
switch chatPresentationInterfaceState.chatWallpaper {
case let .file(_, _, _, _, isPattern, _, _, _, settings):
if isPattern {
backgroundColors = settings.colors
case let .file(file):
if file.isPattern {
backgroundColors = file.settings.colors
}
case let .gradient(_, colors, _):
backgroundColors = colors
case let .gradient(gradient):
backgroundColors = gradient.colors
case let .color(color):
backgroundColors = [color]
default: