chore: migrate to new version + fixed several critical bugs

- Migrated project to latest Telegram iOS base (v12.3.2+)
- Fixed circular dependency between GhostModeManager and MiscSettingsManager
- Fixed multiple Bazel build configuration errors (select() default conditions)
- Fixed duplicate type definitions in PeerInfoScreen
- Fixed swiftmodule directory resolution in build scripts
- Added Ghostgram Settings tab in main Settings menu with all 5 features
- Cleared sensitive credentials from config.json (template-only now)
- Excluded bazel-cache from version control
This commit is contained in:
ichmagmaus 812
2026-02-23 23:04:32 +01:00
parent 703e291bcb
commit db53826061
1017 changed files with 62337 additions and 40559 deletions
@@ -23,6 +23,7 @@ import LottieComponent
import Markdown
import PeerListItemComponent
import AvatarNode
import AlertComponent
private let checkIcon: UIImage = {
return generateImage(CGSize(width: 12.0, height: 10.0), rotatedContext: { size, context in
@@ -527,14 +528,20 @@ final class ChatbotSetupScreenComponent: Component {
} else {
text = environment.strings.ChatbotSetup_Gift_Warning_CombinedText(botUsername).string
}
let alertController = textAlertController(context: component.context, title: environment.strings.ChatbotSetup_Gift_Warning_Title, text: text, actions: [
TextAlertAction(type: .genericAction, title: environment.strings.Common_Cancel, action: {
completion(false)
}),
TextAlertAction(type: .defaultAction, title: environment.strings.ChatbotSetup_Gift_Warning_Proceed, action: {
completion(true)
})
], parseMarkdown: true)
let alertController = AlertScreen(
context: component.context,
title: environment.strings.ChatbotSetup_Gift_Warning_Title,
text: text,
actions: [
.init(title: environment.strings.Common_Cancel, action: {
completion(false)
}),
.init(title: environment.strings.ChatbotSetup_Gift_Warning_Proceed, type: .default, action: {
completion(true)
}),
]
)
alertController.dismissed = { byOutsideTap in
if byOutsideTap {
completion(false)
@@ -785,7 +792,7 @@ final class ChatbotSetupScreenComponent: Component {
self.botRights = [.reply, .readMessages, .deleteSentMessages, .deleteReceivedMessages]
self.state?.updated(transition: .spring(duration: 0.3))
} else {
self.environment?.controller()?.present(standardTextAlertController(theme: AlertControllerTheme(presentationData: presentationData), title: nil, text: presentationData.strings.ChatbotSetup_ErrorBotNotBusinessCapable, actions: [
self.environment?.controller()?.present(textAlertController(context: component.context, title: nil, text: presentationData.strings.ChatbotSetup_ErrorBotNotBusinessCapable, actions: [
TextAlertAction(type: .defaultAction, title: presentationData.strings.Common_OK, action: {
})
]), in: .window(.root))