Skip to content

Commit

Permalink
completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Aug 24, 2023
1 parent 83e7229 commit 91b6d27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Riot/Modules/Settings/SettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,10 @@ - (void)updateSections
{
[sectionUserSettings addRowWithTag: USER_SETTINGS_PHONENUMBERS_OFFSET + index];
}
if (BuildSettings.settingsScreenAllowAddingEmailThreepids)
if (BuildSettings.settingsScreenAllowAddingEmailThreepids &&
// If the threePidChanges is nil we assume the capability to be true
(!self.mainSession.homeserverCapabilities.threePidChanges ||
self.mainSession.homeserverCapabilities.threePidChanges.enabled))
{
[sectionUserSettings addRowWithTag:USER_SETTINGS_ADD_EMAIL_INDEX];
}
Expand Down
1 change: 1 addition & 0 deletions changelog.d/7645.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add email UI is hidden if the 3 pid changes capability is disabled.

0 comments on commit 91b6d27

Please sign in to comment.