Adopt the new room list service syncIndicatorListener

This commit is contained in:
Stefan Ceriu
2023-09-06 16:10:36 +03:00
parent 62b6cd598f
commit fad608cd34
4 changed files with 54 additions and 25 deletions
@@ -19,7 +19,6 @@ import Foundation
import MatrixRustSDK
enum ClientProxyCallback {
case startedUpdating
case receivedSyncUpdate
case receivedAuthError(isSoftLogout: Bool)
case updateRestorationToken
@@ -33,6 +32,11 @@ enum ClientProxyCallback {
}
}
enum ClientProxyLoadingState {
case loading
case notLoading
}
enum ClientProxyError: Error {
case failedCreatingRoom
case failedRetrievingDirectRoom
@@ -67,6 +71,8 @@ struct PusherConfiguration {
protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol {
var callbacks: PassthroughSubject<ClientProxyCallback, Never> { get }
var loadingStatePublisher: CurrentValuePublisher<ClientProxyLoadingState, Never> { get }
var userID: String { get }
var deviceID: String? { get }