Update files following swiftformat upgrade
This commit is contained in:
committed by
Stefan Ceriu
parent
2bb26efbe1
commit
04053ae69b
@@ -13,7 +13,9 @@ struct RoomPermissionsSetting: Identifiable {
|
||||
static let allValues: [(title: String, tag: RoomRole)] = [(title: L10n.screenRoomChangePermissionsAdministrators, tag: .administrator),
|
||||
(title: L10n.screenRoomChangePermissionsModerators, tag: .moderator),
|
||||
(title: L10n.screenRoomChangePermissionsEveryone, tag: .user)]
|
||||
var id: KeyPath<RoomPermissions, Int64> { keyPath }
|
||||
var id: KeyPath<RoomPermissions, Int64> {
|
||||
keyPath
|
||||
}
|
||||
|
||||
/// The title of this setting.
|
||||
let title: String
|
||||
@@ -69,16 +71,6 @@ struct RoomPermissionsSetting: Identifiable {
|
||||
Self.allValues.filter { $0.tag <= ownPowerLevel.role }
|
||||
}
|
||||
}
|
||||
|
||||
init(title: String,
|
||||
value: Int64,
|
||||
ownPowerLevel: RoomPowerLevel,
|
||||
keyPath: KeyPath<RoomPermissions, Int64>) {
|
||||
self.ownPowerLevel = ownPowerLevel
|
||||
self.title = title
|
||||
self.value = value
|
||||
self.keyPath = keyPath
|
||||
}
|
||||
}
|
||||
|
||||
struct RoomPermissions {
|
||||
|
||||
Reference in New Issue
Block a user