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

Commit

Permalink
Privacy: Remove the bind true flag from 3PID adds in settings (#3254)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty authored and BillCarsonFr committed Sep 24, 2019
1 parent 272bfd9 commit 8de195d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Features:
- Privacy: Make clear that device names are publicly readable (#3265)
- Privacy: Email help text on registration should be updated without binding (#3278)
- Privacy: Use wellknown to discover the IS of a HS (#3283)
- Privacy: Remove the bind true flag from 3PID adds in settings (#3254)

Improvements:
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void onUnexpectedError(Exception e) {
}

private void registerAfterPhoneNumberValidation(final ThreePid pid) {
mSession.getMyUser().add3Pid(pid, true, new ApiCallback<Void>() {
mSession.getMyUser().add3Pid(pid, false, new ApiCallback<Void>() {
@Override
public void onSuccess(Void info) {
Intent intent = new Intent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,8 @@ class VectorSettingsPreferencesFragment : PreferenceFragmentCompat(), SharedPref
.setTitle(R.string.account_email_validation_title)
.setMessage(R.string.account_email_validation_message)
.setPositiveButton(R.string._continue) { _, _ ->
mSession.myUser.add3Pid(pid, true, object : ApiCallback<Void> {
// We do not bind anymore emails when registering, so let's do the same here
mSession.myUser.add3Pid(pid, false, object : ApiCallback<Void> {
override fun onSuccess(info: Void?) {
it.runOnUiThread {
hideLoadingView()
Expand Down

0 comments on commit 8de195d

Please sign in to comment.