Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Disable binding 3PIDs when adding to account
Browse files Browse the repository at this point in the history
Binding 3PIDs on the IS is now handled by a separate step in the Discovery
section of settings.

Fixes element-hq/element-web#10510
  • Loading branch information
jryans committed Aug 8, 2019
1 parent 178d660 commit 11cf749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/views/settings/account/EmailAddresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default class EmailAddresses extends React.Component {
const task = new AddThreepid();
this.setState({verifying: true, continueDisabled: true, addTask: task});

task.addEmailAddress(email, true).then(() => {
task.addEmailAddress(email, false).then(() => {
this.setState({continueDisabled: false});
}).catch((err) => {
console.error("Unable to add email address " + email + " " + err);
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/settings/account/PhoneNumbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default class PhoneNumbers extends React.Component {
const task = new AddThreepid();
this.setState({verifying: true, continueDisabled: true, addTask: task});

task.addMsisdn(phoneCountry, phoneNumber, true).then((response) => {
task.addMsisdn(phoneCountry, phoneNumber, false).then((response) => {
this.setState({continueDisabled: false, verifyMsisdn: response.msisdn});
}).catch((err) => {
console.error("Unable to add phone number " + phoneNumber + " " + err);
Expand Down

0 comments on commit 11cf749

Please sign in to comment.