mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-28 19:05:49 +00:00
Fixed auto-night mode triggering when the main theme is custom
This commit is contained in:
parent
716049c9ef
commit
a7ba693f8b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user