mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Adopt the new room list service syncIndicatorListener
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user