Fix list on older instances
This commit is contained in:
parent
32be7d4460
commit
885a134eaf
|
@ -28,8 +28,8 @@ import Env
|
|||
init(list: Models.List) {
|
||||
self.list = list
|
||||
self.title = list.title
|
||||
self.repliesPolicy = list.repliesPolicy
|
||||
self.isExclusive = list.exclusive
|
||||
self.repliesPolicy = list.repliesPolicy ?? .list
|
||||
self.isExclusive = list.exclusive ?? false
|
||||
}
|
||||
|
||||
func fetchAccounts() async {
|
||||
|
@ -54,8 +54,8 @@ import Env
|
|||
exclusive: isExclusive ))
|
||||
self.list = list
|
||||
self.title = list.title
|
||||
self.repliesPolicy = list.repliesPolicy
|
||||
self.isExclusive = list.exclusive
|
||||
self.repliesPolicy = list.repliesPolicy ?? .list
|
||||
self.isExclusive = list.exclusive ?? false
|
||||
self.isUpdating = false
|
||||
await CurrentAccount.shared.fetchLists()
|
||||
} catch {
|
||||
|
|
|
@ -3,8 +3,8 @@ import Foundation
|
|||
public struct List: Codable, Identifiable, Equatable, Hashable {
|
||||
public let id: String
|
||||
public let title: String
|
||||
public let repliesPolicy: RepliesPolicy
|
||||
public let exclusive: Bool
|
||||
public let repliesPolicy: RepliesPolicy?
|
||||
public let exclusive: Bool?
|
||||
|
||||
public enum RepliesPolicy: String, Sendable, Codable, CaseIterable, Identifiable {
|
||||
public var id: String {
|
||||
|
|
Loading…
Reference in New Issue