Fix media device selectors not updating

Missed a setState

Fixes https://github.com/vector-im/riot-web/issues/9036
pull/21833/head
David Baker 2019-03-04 14:35:41 +00:00
parent ff4963e662
commit cd4e22b3fd
1 changed files with 9 additions and 0 deletions

View File

@ -76,14 +76,23 @@ export default class VoiceUserSettingsTab extends React.Component {
_setAudioOutput = (e) => {
CallMediaHandler.setAudioOutput(e.target.value);
this.setState({
activeAudioOutput: e.target.value,
});
};
_setAudioInput = (e) => {
CallMediaHandler.setAudioInput(e.target.value);
this.setState({
activeAudioInput: e.target.value,
});
};
_setVideoInput = (e) => {
CallMediaHandler.setVideoInput(e.target.value);
this.setState({
activeVideoInput: e.target.value,
});
};
_changeWebRtcMethod = (p2p) => {