Implemented chat-specific themes

This commit is contained in:
Ilya Laktyushin
2021-08-22 18:30:49 +03:00
parent c7fe52fd72
commit d423f90681
63 changed files with 1649 additions and 234 deletions

View File

@@ -1412,9 +1412,7 @@ private func finalStateWithUpdatesAndServerTime(postbox: Postbox, network: Netwo
}
updatedState.deleteMessages(messageIds)
case let .updateTheme(theme):
if let theme = TelegramTheme(apiTheme: theme) {
updatedState.updateTheme(theme)
}
updatedState.updateTheme(TelegramTheme(apiTheme: theme))
case let .updateMessageID(id, randomId):
updatedState.updatedOutgoingUniqueMessageIds[randomId] = id
case .updateDialogFilters: