Story data saved experiment

This commit is contained in:
Isaac
2023-12-20 14:06:21 +04:00
parent 7c3432be3e
commit 9d30e0bac3
11 changed files with 140 additions and 40 deletions

View File

@@ -55,7 +55,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
public var crashOnMemoryPressure: Bool
public var unidirectionalSwipeToReply: Bool
public var dustEffect: Bool
public var callUIV2: Bool
public var alternativeStoryMedia: Bool
public var allowWebViewInspection: Bool
public static var defaultSettings: ExperimentalUISettings {
@@ -90,7 +90,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
crashOnMemoryPressure: false,
unidirectionalSwipeToReply: false,
dustEffect: false,
callUIV2: false,
alternativeStoryMedia: false,
allowWebViewInspection: false
)
}
@@ -126,7 +126,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
crashOnMemoryPressure: Bool,
unidirectionalSwipeToReply: Bool,
dustEffect: Bool,
callUIV2: Bool,
alternativeStoryMedia: Bool,
allowWebViewInspection: Bool
) {
self.keepChatNavigationStack = keepChatNavigationStack
@@ -159,7 +159,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
self.crashOnMemoryPressure = crashOnMemoryPressure
self.unidirectionalSwipeToReply = unidirectionalSwipeToReply
self.dustEffect = dustEffect
self.callUIV2 = callUIV2
self.alternativeStoryMedia = alternativeStoryMedia
self.allowWebViewInspection = allowWebViewInspection
}
@@ -196,7 +196,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
self.crashOnMemoryPressure = try container.decodeIfPresent(Bool.self, forKey: "crashOnMemoryPressure") ?? false
self.unidirectionalSwipeToReply = try container.decodeIfPresent(Bool.self, forKey: "unidirectionalSwipeToReply") ?? false
self.dustEffect = try container.decodeIfPresent(Bool.self, forKey: "dustEffect_2") ?? false
self.callUIV2 = try container.decodeIfPresent(Bool.self, forKey: "callUIV2") ?? false
self.alternativeStoryMedia = try container.decodeIfPresent(Bool.self, forKey: "alternativeStoryMedia") ?? false
self.allowWebViewInspection = try container.decodeIfPresent(Bool.self, forKey: "allowWebViewInspection") ?? false
}
@@ -233,7 +233,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
try container.encode(self.crashOnMemoryPressure, forKey: "crashOnMemoryPressure")
try container.encode(self.unidirectionalSwipeToReply, forKey: "unidirectionalSwipeToReply")
try container.encode(self.dustEffect, forKey: "dustEffect_2")
try container.encode(self.callUIV2, forKey: "callUIV2")
try container.encode(self.alternativeStoryMedia, forKey: "alternativeStoryMedia")
try container.encode(self.allowWebViewInspection, forKey: "allowWebViewInspection")
}
}