mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
implemented a way to filter out roles that can't be assigned to permission, and disable permissions that are above the current power level of the user.
This commit is contained in:
@@ -30,6 +30,10 @@ enum RoomPowerLevel: Hashable, Comparable {
|
||||
case .value(let value): .value(value: Int64(value))
|
||||
}
|
||||
}
|
||||
|
||||
var role: RoomRole {
|
||||
RoomRole(powerLevel: self)
|
||||
}
|
||||
}
|
||||
|
||||
extension PowerLevel {
|
||||
|
||||
Reference in New Issue
Block a user