mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
1ae854e2e9
commit
d83734eb46
9 changed files with 587 additions and 32 deletions
|
|
@ -72,6 +72,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
public var enablePWA: Bool
|
||||
public var forceClearGlass: Bool
|
||||
public var debugRipple: Bool
|
||||
public var debugRichText: Bool
|
||||
|
||||
public static var defaultSettings: ExperimentalUISettings {
|
||||
return ExperimentalUISettings(
|
||||
|
|
@ -121,7 +122,8 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
enableUpdates: false,
|
||||
enablePWA: false,
|
||||
forceClearGlass: false,
|
||||
debugRipple: false
|
||||
debugRipple: false,
|
||||
debugRichText: false
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -172,7 +174,8 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
enableUpdates: Bool,
|
||||
enablePWA: Bool,
|
||||
forceClearGlass: Bool,
|
||||
debugRipple: Bool
|
||||
debugRipple: Bool,
|
||||
debugRichText: Bool
|
||||
) {
|
||||
self.keepChatNavigationStack = keepChatNavigationStack
|
||||
self.skipReadHistory = skipReadHistory
|
||||
|
|
@ -221,6 +224,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
self.enablePWA = enablePWA
|
||||
self.forceClearGlass = forceClearGlass
|
||||
self.debugRipple = debugRipple
|
||||
self.debugRichText = debugRichText
|
||||
}
|
||||
|
||||
public init(from decoder: Decoder) throws {
|
||||
|
|
@ -273,6 +277,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
self.enablePWA = try container.decodeIfPresent(Bool.self, forKey: "enablePWA") ?? false
|
||||
self.forceClearGlass = try container.decodeIfPresent(Bool.self, forKey: "forceClearGlass") ?? false
|
||||
self.debugRipple = try container.decodeIfPresent(Bool.self, forKey: "debugRipple") ?? false
|
||||
self.debugRichText = try container.decodeIfPresent(Bool.self, forKey: "debugRichText") ?? false
|
||||
}
|
||||
|
||||
public func encode(to encoder: Encoder) throws {
|
||||
|
|
@ -325,6 +330,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
try container.encodeIfPresent(self.enablePWA, forKey: "enablePWA")
|
||||
try container.encodeIfPresent(self.forceClearGlass, forKey: "forceClearGlass")
|
||||
try container.encodeIfPresent(self.debugRipple, forKey: "debugRipple")
|
||||
try container.encodeIfPresent(self.debugRichText, forKey: "debugRichText")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue