Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Always show account 3PID section in Settings if the HS supports MSC2290
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed Sep 25, 2019
1 parent e43f333 commit 29e8b72
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1752,9 +1752,12 @@ class VectorSettingsPreferencesFragment : PreferenceFragmentCompat(), SharedPref
//Though there is a special case when HS (checked via capabilities) can manage msisdn/mails by
//themselves without an identity server.

mSession.doesServerRequireIdentityServerParam(object : ApiCallback<Boolean> {
override fun onSuccess(requiresIdentityServer: Boolean) {
if (requiresIdentityServer) {
mSession.doesServerSeparatesAddAndBind(object : ApiCallback<Boolean> {
override fun onSuccess(separatesAddAndBind: Boolean) {
if (separatesAddAndBind) {
updateMailSection()
} else {
//hide
run {
var index = 0
while (true) {
Expand All @@ -1771,8 +1774,6 @@ class VectorSettingsPreferencesFragment : PreferenceFragmentCompat(), SharedPref
mUserSettingsCategory.findPreference(ADD_EMAIL_PREFERENCE_KEY)?.let {
it.isVisible = false
}
} else {
updateMailSection()
}
}

Expand Down

0 comments on commit 29e8b72

Please sign in to comment.