From 1bd5a294e40df2571a52dc6de84101de05bfa3b1 Mon Sep 17 00:00:00 2001 From: Michel-Marie MAUDET Date: Tue, 17 Mar 2026 06:52:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20device=20selecti?= =?UTF-8?q?on=20not=20applying=20during=20conference?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Await was missing, leading to inconsistent behavior between select component. Michel-Marie fixed it. --- CHANGELOG.md | 1 + .../rooms/livekit/components/controls/Device/SelectDevice.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 641c535f..9955988f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ and this project adheres to - 🐛(frontend) disable personal custom background while deleting #1183 - 🐛(frontend) auto-select new custom background when not logged in #1183 +- 🐛(frontend) fix device selection not applying during conference #1156 ## [1.11.0] - 2026-03-19 diff --git a/src/frontend/src/features/rooms/livekit/components/controls/Device/SelectDevice.tsx b/src/frontend/src/features/rooms/livekit/components/controls/Device/SelectDevice.tsx index 6dcbea59..c5ac2b1b 100644 --- a/src/frontend/src/features/rooms/livekit/components/controls/Device/SelectDevice.tsx +++ b/src/frontend/src/features/rooms/livekit/components/controls/Device/SelectDevice.tsx @@ -69,10 +69,10 @@ const SelectDevicePermissions = ({ iconComponent={iconComponent} placeholder={items.length === 0 ? t('loading') : t('select')} selectedKey={selectedKey} - onSelectionChange={(key) => { + onSelectionChange={async (key) => { if (key === selectedKey) return + await setActiveMediaDevice(key as string) onSubmit?.(key as string) - setActiveMediaDevice(key as string) }} {...props} />