From 1657e0605db817513b16366cd8e725ee7503135d Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 15 Dec 2025 15:10:33 +0000 Subject: [PATCH] Respect the m.change_password capability From https://spec.matrix.org/v1.16/client-server-api/#mchange_password-capability. This isn't listed as a requirement for OAuth 2.0 aware MSC3824, but does make the UX more sensible. --- Riot/Modules/Settings/SettingsViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Riot/Modules/Settings/SettingsViewController.m b/Riot/Modules/Settings/SettingsViewController.m index 4c99850342..df4c0d0aac 100644 --- a/Riot/Modules/Settings/SettingsViewController.m +++ b/Riot/Modules/Settings/SettingsViewController.m @@ -344,7 +344,7 @@ - (void)updateSections Section *sectionUserSettings = [Section sectionWithTag:SECTION_TAG_USER_SETTINGS]; [sectionUserSettings addRowWithTag:USER_SETTINGS_PROFILE_PICTURE_INDEX]; [sectionUserSettings addRowWithTag:USER_SETTINGS_DISPLAYNAME_INDEX]; - if (RiotSettings.shared.settingsScreenShowChangePassword) + if (RiotSettings.shared.settingsScreenShowChangePassword && self.mainSession.homeserverCapabilitiesService.canChangePassword) { [sectionUserSettings addRowWithTag:USER_SETTINGS_CHANGE_PASSWORD_INDEX]; }