From a7ba693f8b47dbbab982fd7f21b0b80b209b5869 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Wed, 4 Sep 2019 01:59:03 +0300 Subject: [PATCH] Fixed auto-night mode triggering when the main theme is custom --- .../Sources/PresentationData.swift | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/submodules/TelegramPresentationData/Sources/PresentationData.swift b/submodules/TelegramPresentationData/Sources/PresentationData.swift index c38327099b..2298746b6c 100644 --- a/submodules/TelegramPresentationData/Sources/PresentationData.swift +++ b/submodules/TelegramPresentationData/Sources/PresentationData.swift @@ -330,17 +330,6 @@ private struct AutomaticThemeSwitchParameters { } private func automaticThemeShouldSwitchNow(_ parameters: AutomaticThemeSwitchParameters, currentTheme: PresentationThemeReference) -> Bool { - switch currentTheme { - case let .builtin(builtin): - switch builtin { - case .nightAccent, .night: - return false - default: - break - } - default: - return false - } switch parameters.trigger { case .none: return false