mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-25 17:00:50 +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:
@@ -4,6 +4,9 @@ import AsyncDisplayKit
|
||||
import Display
|
||||
import TelegramPresentationData
|
||||
import ListSectionHeaderNode
|
||||
import EdgeEffect
|
||||
import ComponentFlow
|
||||
import ComponentDisplayAdapters
|
||||
|
||||
public enum ChatListSearchItemHeaderType {
|
||||
case localPeers
|
||||
@@ -214,6 +217,7 @@ public final class ChatListSearchItemHeader: ListViewItemHeader {
|
||||
public let action: ((ASDisplayNode) -> Void)?
|
||||
|
||||
public let height: CGFloat = 28.0
|
||||
public let isSticky: Bool = false
|
||||
|
||||
public init(type: ChatListSearchItemHeaderType, theme: PresentationTheme, strings: PresentationStrings, actionTitle: String? = nil, action: ((ASDisplayNode) -> Void)? = nil) {
|
||||
self.type = type
|
||||
@@ -250,6 +254,7 @@ public final class ChatListSearchItemHeaderNode: ListViewItemHeaderNode {
|
||||
|
||||
private var validLayout: (size: CGSize, leftInset: CGFloat, rightInset: CGFloat)?
|
||||
|
||||
private var edgeEffectView: EdgeEffectView?
|
||||
private let sectionHeaderNode: ListSectionHeaderNode
|
||||
|
||||
public init(type: ChatListSearchItemHeaderType, theme: PresentationTheme, strings: PresentationStrings, actionTitle: String?, action: ((ASDisplayNode) -> Void)?) {
|
||||
@@ -263,6 +268,8 @@ public final class ChatListSearchItemHeaderNode: ListViewItemHeaderNode {
|
||||
|
||||
super.init()
|
||||
|
||||
//self.contributesToEdgeEffect = true
|
||||
|
||||
self.sectionHeaderNode.title = type.title(strings: strings).uppercased()
|
||||
self.sectionHeaderNode.action = actionTitle
|
||||
self.sectionHeaderNode.activateAction = action
|
||||
|
||||
Reference in New Issue
Block a user