mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
better check if an user can edit addresses
This commit is contained in:
@@ -49,7 +49,7 @@ extension RoomPowerLevelsProxyProtocol {
|
||||
func canOwnUserEditSecurityAndPrivacy(isSpace: Bool, joinRule: JoinRule?) -> Bool {
|
||||
let canOwnUserChangeAddress = switch joinRule {
|
||||
case .knockRestricted, .knock, .public:
|
||||
canOwnUser(sendStateEvent: .roomAliases)
|
||||
canOwnUser(sendStateEvent: .roomCanonicalAlias)
|
||||
default:
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user