From c7b019830d8b8cdc32119b624a2139c0eb75de44 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 4 Mar 2019 14:35:41 +0000 Subject: [PATCH] Fix media device selectors not updating Missed a setState Fixes https://github.com/vector-im/riot-web/issues/9036 --- .../views/settings/tabs/user/VoiceUserSettingsTab.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/views/settings/tabs/user/VoiceUserSettingsTab.js b/src/components/views/settings/tabs/user/VoiceUserSettingsTab.js index 31791708e0..84d70a48d4 100644 --- a/src/components/views/settings/tabs/user/VoiceUserSettingsTab.js +++ b/src/components/views/settings/tabs/user/VoiceUserSettingsTab.js @@ -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) => {