mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
Bump SDK version and fix breaking changes. (#709)
This commit is contained in:
@@ -26,7 +26,7 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
|
||||
private var cancellables = Set<AnyCancellable>()
|
||||
|
||||
let roomListPublisher = CurrentValueSubject<[RoomSummary], Never>([])
|
||||
let statePublisher = CurrentValueSubject<RoomSummaryProviderState, Never>(.cold)
|
||||
let statePublisher = CurrentValueSubject<RoomSummaryProviderState, Never>(.notLoaded)
|
||||
let countPublisher = CurrentValueSubject<UInt, Never>(0)
|
||||
|
||||
private var rooms: [RoomSummary] = [] {
|
||||
@@ -220,14 +220,14 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
|
||||
extension RoomSummaryProviderState {
|
||||
init(slidingSyncState: SlidingSyncState) {
|
||||
switch slidingSyncState {
|
||||
case .cold:
|
||||
self = .cold
|
||||
case .preload:
|
||||
self = .preload
|
||||
case .catchingUp:
|
||||
self = .catchingUp
|
||||
case .live:
|
||||
self = .live
|
||||
case .notLoaded:
|
||||
self = .notLoaded
|
||||
case .preloaded:
|
||||
self = .preloaded
|
||||
case .partiallyLoaded:
|
||||
self = .partiallyLoaded
|
||||
case .fullyLoaded:
|
||||
self = .fullyLoaded
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user