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

Commit

Permalink
Merge pull request #2751 from matrix-org/dbkr/devices_toggle_update_2
Browse files Browse the repository at this point in the history
Fix media device selectors not updating
  • Loading branch information
dbkr authored Mar 5, 2019
2 parents ff4963e + cd4e22b commit 4c333f8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 4c333f8

Please sign in to comment.