mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Select members before creating a room (UI for selection) (#766)
* add invite users in room flow * add selectable user cell * add screenshoots * add unit test * add button style * add scroll to bottom when added user * rebase screenshot from develop * add changelog * rename invite users files * fix static viewModel * fix buttonStyle, fix unit test * UI test for selected user * remove fixed height size * fix saled width for horizontal cell * add usersSection, screenshots * use publishers pattern * add selectable form button style * add comment * improve readability * some rename on InviteUsers * fix compile issues * add search content
This commit is contained in:
@@ -33,7 +33,7 @@ class UserSessionFlowCoordinator: CoordinatorProtocol {
|
||||
|
||||
private let sidebarNavigationStackCoordinator: NavigationStackCoordinator
|
||||
private let detailNavigationStackCoordinator: NavigationStackCoordinator
|
||||
|
||||
|
||||
var callback: ((UserSessionFlowCoordinatorAction) -> Void)?
|
||||
|
||||
init(userSession: UserSessionProtocol,
|
||||
@@ -277,9 +277,9 @@ class UserSessionFlowCoordinator: CoordinatorProtocol {
|
||||
|
||||
let userIndicatorController = UserIndicatorController(rootCoordinator: startChatNavigationStackCoordinator)
|
||||
|
||||
let parameters = StartChatCoordinatorParameters(userSession: userSession, userIndicatorController: userIndicatorController)
|
||||
let parameters = StartChatCoordinatorParameters(userSession: userSession, userIndicatorController: userIndicatorController, navigationStackCoordinator: startChatNavigationStackCoordinator)
|
||||
let coordinator = StartChatCoordinator(parameters: parameters)
|
||||
coordinator.callback = { [weak self] action in
|
||||
coordinator.actions.sink { [weak self] action in
|
||||
guard let self else { return }
|
||||
switch action {
|
||||
case .close:
|
||||
@@ -289,6 +289,7 @@ class UserSessionFlowCoordinator: CoordinatorProtocol {
|
||||
self.stateMachine.processEvent(.selectRoom(roomId: identifier))
|
||||
}
|
||||
}
|
||||
.store(in: &cancellables)
|
||||
|
||||
startChatNavigationStackCoordinator.setRootCoordinator(coordinator)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user