Update files following swiftformat upgrade

This commit is contained in:
Stefan Ceriu
2026-01-27 08:47:03 +02:00
committed by Stefan Ceriu
parent 2bb26efbe1
commit 04053ae69b
343 changed files with 1502 additions and 1048 deletions

View File

@@ -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 {