mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-06-02 16:21:39 +02:00
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:
+12
-10
@@ -212,7 +212,7 @@ private func attachmentFileControllerEntries(presentationData: PresentationData,
|
||||
|
||||
if case .audio = mode {
|
||||
if let savedMusic, savedMusic.count > 0 {
|
||||
entries.append(.savedHeader(presentationData.theme, "SAVED MUSIC".uppercased()))
|
||||
entries.append(.savedHeader(presentationData.theme, presentationData.strings.MediaEditor_Audio_SavedMusic.uppercased()))
|
||||
var savedMusic = savedMusic
|
||||
var showMore = false
|
||||
if savedMusic.count > 4 && !state.savedMusicExpanded {
|
||||
@@ -225,7 +225,7 @@ private func attachmentFileControllerEntries(presentationData: PresentationData,
|
||||
i += 1
|
||||
}
|
||||
if showMore {
|
||||
entries.append(.showMore(presentationData.theme, "Show More"))
|
||||
entries.append(.showMore(presentationData.theme, presentationData.strings.MediaEditor_Audio_ShowMore))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -459,16 +459,17 @@ public func makeAttachmentFileControllerImpl(context: AccountContext, updatedPre
|
||||
let updatedTheme = presentationData.theme.withModalBlocksBackground()
|
||||
presentationData = presentationData.withUpdated(theme: updatedTheme)
|
||||
|
||||
let barButtonSize = CGSize(width: 40.0, height: 40.0)
|
||||
let barButtonSize = CGSize(width: 44.0, height: 44.0)
|
||||
let closeButton = GlassBarButtonComponent(
|
||||
size: barButtonSize,
|
||||
backgroundColor: presentationData.theme.rootController.navigationBar.glassBarButtonBackgroundColor,
|
||||
backgroundColor: nil,
|
||||
isDark: presentationData.theme.overallDarkAppearance,
|
||||
state: .generic,
|
||||
animateScale: false,
|
||||
component: AnyComponentWithIdentity(id: "close", component: AnyComponent(
|
||||
BundleIconComponent(
|
||||
name: "Navigation/Close",
|
||||
tintColor: presentationData.theme.rootController.navigationBar.glassBarButtonForegroundColor
|
||||
tintColor: presentationData.theme.chat.inputPanel.panelControlColor
|
||||
)
|
||||
)),
|
||||
action: { _ in
|
||||
@@ -489,13 +490,14 @@ public func makeAttachmentFileControllerImpl(context: AccountContext, updatedPre
|
||||
|
||||
let searchButton = GlassBarButtonComponent(
|
||||
size: barButtonSize,
|
||||
backgroundColor: presentationData.theme.rootController.navigationBar.glassBarButtonBackgroundColor,
|
||||
backgroundColor: nil,
|
||||
isDark: presentationData.theme.overallDarkAppearance,
|
||||
state: .generic,
|
||||
animateScale: false,
|
||||
component: AnyComponentWithIdentity(id: "search", component: AnyComponent(
|
||||
BundleIconComponent(
|
||||
name: "Navigation/Search",
|
||||
tintColor: presentationData.theme.rootController.navigationBar.glassBarButtonForegroundColor
|
||||
tintColor: presentationData.theme.chat.inputPanel.panelControlColor
|
||||
)
|
||||
)),
|
||||
action: { _ in
|
||||
@@ -509,7 +511,7 @@ public func makeAttachmentFileControllerImpl(context: AccountContext, updatedPre
|
||||
}
|
||||
)
|
||||
let searchButtonComponent = state.searching ? nil : AnyComponentWithIdentity(id: "search", component: AnyComponent(searchButton))
|
||||
let searchButtonNode = existingSearchButton.modify { current in
|
||||
let searchButtonNode: BarComponentHostNode? = !state.searching ? existingSearchButton.modify { current in
|
||||
let buttonNode: BarComponentHostNode
|
||||
if let current {
|
||||
buttonNode = current
|
||||
@@ -518,7 +520,7 @@ public func makeAttachmentFileControllerImpl(context: AccountContext, updatedPre
|
||||
buttonNode = BarComponentHostNode(component: searchButtonComponent, size: barButtonSize)
|
||||
}
|
||||
return buttonNode
|
||||
}
|
||||
} : nil
|
||||
|
||||
let previousRecentDocuments = previousRecentDocuments.swap(recentDocuments)
|
||||
let crossfade = previousRecentDocuments == nil && recentDocuments != nil
|
||||
@@ -542,7 +544,7 @@ public func makeAttachmentFileControllerImpl(context: AccountContext, updatedPre
|
||||
case .recent:
|
||||
title = presentationData.strings.Attachment_File
|
||||
case .audio:
|
||||
title = "Audio"
|
||||
title = presentationData.strings.MediaEditor_Audio_Title
|
||||
}
|
||||
|
||||
let controllerState = ItemListControllerState(
|
||||
|
||||
Reference in New Issue
Block a user