🐛(frontend) fix device selection not applying during conference

Await was missing, leading to inconsistent behavior between select component.
Michel-Marie fixed it.
This commit is contained in:
Michel-Marie MAUDET
2026-03-17 06:52:55 +01:00
committed by lebaudantoine
parent 4d98ed4977
commit 1bd5a294e4
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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
@@ -69,10 +69,10 @@ const SelectDevicePermissions = <T extends string | number>({
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}
/>