diff --git a/ElementX/Sources/Screens/SecurityAndPrivacyScreen/SecurityAndPrivacyScreenViewModel.swift b/ElementX/Sources/Screens/SecurityAndPrivacyScreen/SecurityAndPrivacyScreenViewModel.swift index a6bca20fe..e74bab29a 100644 --- a/ElementX/Sources/Screens/SecurityAndPrivacyScreen/SecurityAndPrivacyScreenViewModel.swift +++ b/ElementX/Sources/Screens/SecurityAndPrivacyScreen/SecurityAndPrivacyScreenViewModel.swift @@ -145,7 +145,7 @@ class SecurityAndPrivacyScreenViewModel: SecurityAndPrivacyScreenViewModelType, } private func setupPermissions(powerLevels: RoomPowerLevelsProxyProtocol) { - state.canEditAddress = powerLevels.canOwnUser(sendStateEvent: .roomAliases) + state.canEditAddress = powerLevels.canOwnUser(sendStateEvent: .roomCanonicalAlias) state.canEditJoinRule = powerLevels.canOwnUser(sendStateEvent: .roomJoinRules) state.canEditHistoryVisibility = powerLevels.canOwnUser(sendStateEvent: .roomHistoryVisibility) state.canEnableEncryption = powerLevels.canOwnUser(sendStateEvent: .roomEncryption) diff --git a/ElementX/Sources/Services/Room/RoomPowerLevelProxyProtocol.swift b/ElementX/Sources/Services/Room/RoomPowerLevelProxyProtocol.swift index 100d96cc7..d55b6107e 100644 --- a/ElementX/Sources/Services/Room/RoomPowerLevelProxyProtocol.swift +++ b/ElementX/Sources/Services/Room/RoomPowerLevelProxyProtocol.swift @@ -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 }