mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-11 02:13:41 +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:
+10
-1
@@ -100,7 +100,7 @@ public struct InteractiveEmojiConfiguration {
|
||||
}
|
||||
|
||||
public static func with(appConfiguration: AppConfiguration) -> InteractiveEmojiConfiguration {
|
||||
if let data = appConfiguration.data, let emojis = data["emojies_send_dice"] as? [String] {
|
||||
if let data = appConfiguration.data, var emojis = data["emojies_send_dice"] as? [String] {
|
||||
var successParameters: [String: InteractiveEmojiSuccessParameters] = [:]
|
||||
if let success = data["emojies_send_dice_success"] as? [String: [String: Double]] {
|
||||
for (key, dict) in success {
|
||||
@@ -109,6 +109,11 @@ public struct InteractiveEmojiConfiguration {
|
||||
}
|
||||
}
|
||||
}
|
||||
#if DEBUG
|
||||
if !emojis.contains("🎲") {
|
||||
emojis.append("🎲")
|
||||
}
|
||||
#endif
|
||||
return InteractiveEmojiConfiguration(emojis: emojis, successParameters: successParameters)
|
||||
} else {
|
||||
return .defaultValue
|
||||
@@ -126,6 +131,10 @@ public final class ManagedDiceAnimationNode: ManagedAnimationNode {
|
||||
private let configuration = Promise<InteractiveEmojiConfiguration?>()
|
||||
private let emojis = Promise<[TelegramMediaFile]>()
|
||||
|
||||
public var isRolling: Bool {
|
||||
return self.diceState == .rolling
|
||||
}
|
||||
|
||||
public var success: (() -> Void)?
|
||||
|
||||
public init(context: AccountContext, emoji: String) {
|
||||
|
||||
Reference in New Issue
Block a user