From 1657e0605db817513b16366cd8e725ee7503135d Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 15 Dec 2025 15:10:33 +0000 Subject: [PATCH 1/2] 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]; } From a8f11f8a51d9a25256917ca58cb90aec98ef4b3c Mon Sep 17 00:00:00 2001 From: Doug Date: Tue, 6 Jan 2026 12:58:31 +0000 Subject: [PATCH 2/2] Add a changelog entry. --- changelog.d/pr-7990.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/pr-7990.bugfix diff --git a/changelog.d/pr-7990.bugfix b/changelog.d/pr-7990.bugfix new file mode 100644 index 0000000000..d6f7bf2547 --- /dev/null +++ b/changelog.d/pr-7990.bugfix @@ -0,0 +1 @@ +Respect the m.change_password capability in the Settings screen. \ No newline at end of file