Add hooks for room creation and privacy & security settings screen. (#6270)

Add hooks for the create room and security and privacy screens.
This commit is contained in:
mxandreas
2026-10-06 12:05:49 +03:00
committed by GitHub
parent 60c11c8172
commit 4640f9cec0
19 changed files with 131 additions and 40 deletions
@@ -31,6 +31,7 @@ struct CreateRoomScreenViewState: BindableState {
var roomName: String
let serverName: String
let isKnockingFeatureEnabled: Bool
var isPublicAccessAllowed = true
let canSelectSpace: Bool
var aliasLocalPart: String
var editableSpaces: [SpaceServiceRoom] = []
@@ -69,6 +70,11 @@ struct CreateRoomScreenViewState: BindableState {
}
}
availableAccessTypes.append(.private)
if !isPublicAccessAllowed {
availableAccessTypes.removeAll { $0 == .public }
}
return availableAccessTypes
}