mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update files following swiftformat upgrade
This commit is contained in:
committed by
Stefan Ceriu
parent
fe189fcfed
commit
23062901c0
@@ -12,7 +12,10 @@ typealias LeaveSpaceViewModelType = StateStoreViewModelV2<LeaveSpaceViewState, L
|
||||
|
||||
class LeaveSpaceViewModel: LeaveSpaceViewModelType {
|
||||
let actionsSubject = PassthroughSubject<LeaveSpaceViewModelAction, Never>()
|
||||
var actions: AnyPublisher<LeaveSpaceViewModelAction, Never> { actionsSubject.eraseToAnyPublisher() }
|
||||
var actions: AnyPublisher<LeaveSpaceViewModelAction, Never> {
|
||||
actionsSubject.eraseToAnyPublisher()
|
||||
}
|
||||
|
||||
private let userIndicatorController: UserIndicatorControllerProtocol
|
||||
private let mediaProvider: MediaProviderProtocol
|
||||
|
||||
@@ -53,8 +56,13 @@ class LeaveSpaceViewModel: LeaveSpaceViewModelType {
|
||||
}
|
||||
}
|
||||
|
||||
private static var leavingIndicatorID: String { "\(Self.self)-Leaving" }
|
||||
private static var failureIndicatorID: String { "\(Self.self)-Failure" }
|
||||
private static var leavingIndicatorID: String {
|
||||
"\(Self.self)-Leaving"
|
||||
}
|
||||
|
||||
private static var failureIndicatorID: String {
|
||||
"\(Self.self)-Failure"
|
||||
}
|
||||
|
||||
private func showLeavingIndicator() {
|
||||
userIndicatorController.submitIndicator(UserIndicator(id: Self.leavingIndicatorID,
|
||||
@@ -75,5 +83,7 @@ class LeaveSpaceViewModel: LeaveSpaceViewModelType {
|
||||
}
|
||||
|
||||
extension LeaveSpaceViewModel: Identifiable {
|
||||
var id: String { state.leaveHandle.id }
|
||||
var id: String {
|
||||
state.leaveHandle.id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user