another.im-ios/ConversationsClassic/AppData/Stores/RostersStore.swift
2024-08-11 13:09:29 +02:00

22 lines
615 B
Swift

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 {}
// }
}
}