mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
started implementing the logic behind the access type and the creation parameters
This commit is contained in:
@@ -48,14 +48,16 @@ enum SlidingSyncConstants {
|
||||
static let maximumVisibleRangeSize = 30
|
||||
}
|
||||
|
||||
enum CreateRoomAccessType: CaseIterable {
|
||||
enum CreateRoomAccessType: Equatable {
|
||||
case `public`
|
||||
case spaceMembers(spaceID: String)
|
||||
case askToJoinWithSpaceMembers(spaceID: String)
|
||||
case askToJoin
|
||||
case `private`
|
||||
|
||||
var isPrivate: Bool {
|
||||
switch self {
|
||||
case .private:
|
||||
case .private, .spaceMembers, .askToJoinWithSpaceMembers:
|
||||
true
|
||||
case .public, .askToJoin:
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user