mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Add indicator after leaving a room (#981)
* Refactor UserIndicatorModalView to support no progress * Add room left indicator in HomeScreenViewModel * Apply PR suggestion
This commit is contained in:
@@ -91,7 +91,7 @@ final class BugReportScreenCoordinator: CoordinatorProtocol {
|
||||
type: .modal,
|
||||
title: label,
|
||||
persistent: true,
|
||||
progressPublisher: progressPublisher)
|
||||
loaderType: .progress(progressPublisher))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -346,6 +346,11 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
||||
case .none, .some(.failure):
|
||||
state.bindings.alertInfo = AlertInfo(id: UUID(), title: L10n.errorUnknown)
|
||||
case .some(.success):
|
||||
ServiceLocator.shared.userIndicatorController.submitIndicator(UserIndicator(id: UUID().uuidString,
|
||||
type: .modal,
|
||||
title: L10n.commonCurrentUserLeftRoom,
|
||||
iconName: "checkmark",
|
||||
loaderType: .none))
|
||||
callback?(.roomLeft(roomIdentifier: roomId))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user