another.im-ios/ConversationsClassic/AppData/Stores/RostersStore.swift

22 lines
615 B
Swift
Raw Normal View History

2024-08-11 00:28:01 +00:00
import Combine
import Foundation
import GRDB
@MainActor
final class RostersStore: ObservableObject {
@Published private(set) var rosters: [Roster] = []
init() {
// Task {
// let observation = ValueObservation.tracking(Roster.fetchAll)
// do {
// for try await credentials in observation.values(in: Database.shared.dbQueue) {
// processCredentials(credentials)
// ready = true
// print("Fetched \(credentials.count) credentials")
// }
// } catch {}
// }
}
}