mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -16,9 +16,9 @@ extension BotMenuButton {
|
||||
extension BotAppSettings {
|
||||
init(apiBotAppSettings: Api.BotAppSettings) {
|
||||
switch apiBotAppSettings {
|
||||
case let .botAppSettings(_, placeholderDocument, backgroundColor, backgroundDarkColor, headerColor, headerDarkColor):
|
||||
case let .botAppSettings(_, placeholder, backgroundColor, backgroundDarkColor, headerColor, headerDarkColor):
|
||||
self.init(
|
||||
placeholder: placeholderDocument.flatMap { telegramMediaFileFromApiDocument($0, altDocuments: []) },
|
||||
placeholderData: placeholder.flatMap { $0.makeData() },
|
||||
backgroundColor: backgroundColor,
|
||||
backgroundDarkColor: backgroundDarkColor,
|
||||
headerColor: headerColor,
|
||||
|
||||
Reference in New Issue
Block a user