Flescio/create room action (#925)

* fix invites users screen

* add create room action

* add a task runner with timeout, add fetch room summary after creation

* rename Runner, add Unit Test, separate UserProfile form client proxy

* change to all room summary publisher
This commit is contained in:
Flescio
2023-05-22 17:27:39 +02:00
committed by GitHub
parent 16728ca438
commit beb61d109f
25 changed files with 324 additions and 68 deletions
@@ -16,8 +16,13 @@
import Foundation
enum CreateRoomScreenErrorType: Error {
case failedCreatingRoom
case unknown
}
enum CreateRoomViewModelAction {
case createRoom
case openRoom(withIdentifier: String)
case deselectUser(UserProfile)
case updateDetails(CreateRoomFlowParameters)
}
@@ -35,6 +40,9 @@ struct CreateRoomViewStateBindings {
var roomName: String
var roomTopic: String
var isRoomPrivate: Bool
/// Information describing the currently displayed alert.
var alertInfo: AlertInfo<CreateRoomScreenErrorType>?
}
enum CreateRoomViewAction {