Update API [skip ci]

This commit is contained in:
Ilya Laktyushin
2023-12-12 10:25:15 +04:00
parent 168d97abdd
commit 44b0464161
27 changed files with 330 additions and 192 deletions

View File

@@ -696,12 +696,7 @@ public func PeerNameColorScreen(
emojiContent: emojiContent
)
let title: ItemListControllerTitle
if case .user = peer {
title = .sectionControl([presentationData.strings.ProfileColorSetup_TitleName, presentationData.strings.ProfileColorSetup_TitleProfile], state.selectedTabIndex)
} else {
title = .text(presentationData.strings.ProfileColorSetup_TitleChannelColor)
}
let title: ItemListControllerTitle = .sectionControl([presentationData.strings.ProfileColorSetup_TitleName, presentationData.strings.ProfileColorSetup_TitleProfile], state.selectedTabIndex)
let controllerState = ItemListControllerState(
presentationData: ItemListPresentationData(presentationData),