mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user