mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix more warnings
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user