Update all 3PID state in Settings when IS changes
This ensures we update all 3PID state (like bind status) whenever the IS changes.
This commit is contained in:
parent
0b7995dc11
commit
db33c138aa
3 changed files with 25 additions and 9 deletions
|
@ -50,6 +50,11 @@ export class PhoneNumber extends React.Component {
|
|||
};
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const { bound } = nextProps.msisdn;
|
||||
this.setState({ bound });
|
||||
}
|
||||
|
||||
async changeBinding({ bind, label, errorTitle }) {
|
||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
const { medium, address } = this.props.msisdn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue