Skip to content

Commit 508dd98

Browse files
committed
Removed "hidden" threadView preference "lab_treeViewEnabled" and stray comment
1 parent 93ecb18 commit 508dd98

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Sources/ATProtoKit/Models/Lexicons/app.bsky/Actor/AppBskyActorDefs.swift

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,9 +1404,6 @@ extension AppBskyLexicon.Actor {
14041404
/// all replies."
14051405
public let areFollowedUsersPrioritized: Bool?
14061406

1407-
/// Indicates whether post threads show replies in a threaded tree view. Optional.
1408-
public let treeViewEnabled: Bool?
1409-
14101407
/// The sorting mode for a thread.
14111408
public enum SortingMode: Sendable, Codable, Equatable, Hashable, ExpressibleByStringLiteral {
14121409

@@ -1418,7 +1415,7 @@ extension AppBskyLexicon.Actor {
14181415

14191416
/// Indicates the thread will be sorted from the posts with the most number
14201417
/// of likes.
1421-
case mostLikes// = "most-likes"
1418+
case mostLikes
14221419

14231420
/// Indicates the thread will be completely random.
14241421
case random
@@ -1491,32 +1488,28 @@ extension AppBskyLexicon.Actor {
14911488
}
14921489
}
14931490

1494-
public init(sortingMode: SortingMode? = nil, areFollowedUsersPrioritized: Bool? = nil, treeViewEnabled: Bool? = nil) {
1491+
public init(sortingMode: SortingMode? = nil, areFollowedUsersPrioritized: Bool? = nil) {
14951492
self.sortingMode = sortingMode
14961493
self.areFollowedUsersPrioritized = areFollowedUsersPrioritized
1497-
self.treeViewEnabled = treeViewEnabled
14981494
}
14991495

15001496
public init(from decoder: any Decoder) throws {
15011497
let container = try decoder.container(keyedBy: CodingKeys.self)
15021498
self.sortingMode = try container.decodeIfPresent(AppBskyLexicon.Actor.ThreadViewPreferencesDefinition.SortingMode.self, forKey: .sortingMode)
15031499
self.areFollowedUsersPrioritized = try container.decodeIfPresent(Bool.self, forKey: .areFollowedUsersPrioritized)
1504-
self.treeViewEnabled = try container.decodeIfPresent(Bool.self, forKey: .treeViewEnabled)
15051500
}
15061501

15071502
public func encode(to encoder: any Encoder) throws {
15081503
var container = encoder.container(keyedBy: CodingKeys.self)
15091504
try container.encode(self.type, forKey: .type)
15101505
try container.encodeIfPresent(self.sortingMode, forKey: .sortingMode)
15111506
try container.encodeIfPresent(self.areFollowedUsersPrioritized, forKey: .areFollowedUsersPrioritized)
1512-
try container.encodeIfPresent(self.treeViewEnabled, forKey: .treeViewEnabled)
15131507
}
15141508

15151509
enum CodingKeys: String, CodingKey {
15161510
case type = "$type"
15171511
case sortingMode = "sort"
15181512
case areFollowedUsersPrioritized = "prioritizeFollowedUsers"
1519-
case treeViewEnabled = "lab_treeViewEnabled"
15201513
}
15211514
}
15221515

0 commit comments

Comments
 (0)