Skip to content

Conversation

@sophiewu2333
Copy link
Contributor

No description provided.

this.setState({
toVoiceMailEnabled: false
});
setTimeout(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it need to clean timeout when component is unmount or session is changed.

<div className={classnames(styles.buttonRow, styles.answerButtonGroup)}>
<ActiveCallButton
onClick={toVoiceMail}
onClick={this.state.toVoiceMailEnabled ? this.toVoiceMail : () => {}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to handle this in ActiveCallButton when it is disabled.

@embbnux embbnux merged commit 1fdc8d2 into ringcentral:master Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants