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
This commit is contained in:
parent
f4bcad02d8
commit
45570bc0e7
|
@ -243,8 +243,10 @@ export function setAudioInputDeviceAndUpdateSettings(deviceId) {
|
||||||
* @returns {Function}
|
* @returns {Function}
|
||||||
*/
|
*/
|
||||||
export function setAudioOutputDevice(deviceId) {
|
export function setAudioOutputDevice(deviceId) {
|
||||||
return function(dispatch) {
|
return function(dispatch, getState) {
|
||||||
return setAudioOutputDeviceId(deviceId, dispatch);
|
const deviceLabel = getDeviceLabelById(getState(), deviceId, 'audioOutput');
|
||||||
|
|
||||||
|
return setAudioOutputDeviceId(deviceId, dispatch, true, deviceLabel);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue