From 45570bc0e7d1722f7cce2a497e14d4baf0c0cec3 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Wed, 3 Jun 2020 17:52:29 -0400 Subject: [PATCH] fix(device-selection): Update redux when a new speaker is selected Update userSelectedAudioOutputDeviceId and userSelectedAudioOutputDeviceLabel when a new speaker is selected from the audio settings popup menu --- react/features/base/devices/actions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/react/features/base/devices/actions.js b/react/features/base/devices/actions.js index b5fc88573..3a8c358db 100644 --- a/react/features/base/devices/actions.js +++ b/react/features/base/devices/actions.js @@ -243,8 +243,10 @@ export function setAudioInputDeviceAndUpdateSettings(deviceId) { * @returns {Function} */ export function setAudioOutputDevice(deviceId) { - return function(dispatch) { - return setAudioOutputDeviceId(deviceId, dispatch); + return function(dispatch, getState) { + const deviceLabel = getDeviceLabelById(getState(), deviceId, 'audioOutput'); + + return setAudioOutputDeviceId(deviceId, dispatch, true, deviceLabel); }; }