mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
persisting create room parameter in volatile memory
This commit is contained in:
@@ -18,11 +18,12 @@ import Foundation
|
||||
|
||||
enum CreateRoomViewModelAction {
|
||||
case createRoom
|
||||
case deselectUser(UserProfile)
|
||||
}
|
||||
|
||||
struct CreateRoomViewState: BindableState {
|
||||
var selectedUsers: [UserProfile]
|
||||
var bindings = CreateRoomViewStateBindings()
|
||||
var bindings: CreateRoomViewStateBindings
|
||||
|
||||
var canCreateRoom: Bool {
|
||||
!bindings.roomName.isEmpty
|
||||
@@ -30,9 +31,9 @@ struct CreateRoomViewState: BindableState {
|
||||
}
|
||||
|
||||
struct CreateRoomViewStateBindings {
|
||||
var roomName = ""
|
||||
var roomTopic = ""
|
||||
var isRoomPrivate = true
|
||||
var roomName: String
|
||||
var roomTopic: String
|
||||
var isRoomPrivate: Bool
|
||||
}
|
||||
|
||||
enum CreateRoomViewAction {
|
||||
|
||||
Reference in New Issue
Block a user