mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-15 18:49:21 +00:00
device names request after unmute
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -131,8 +131,11 @@ export function useMuteStates(isJoined: boolean): MuteStates {
|
|||||||
// This allows to also use this action to just get the unaltered current state
|
// This allows to also use this action to just get the unaltered current state
|
||||||
// by using a fromWidget request with: `ev.detail.data = {}`
|
// by using a fromWidget request with: `ev.detail.data = {}`
|
||||||
widget!.api.transport.reply(ev.detail, newState);
|
widget!.api.transport.reply(ev.detail, newState);
|
||||||
|
// We need to request the device names again, because otherwise iOS will
|
||||||
|
// not be able to switch to the correct device after un-muting
|
||||||
|
devices.requestDeviceNames();
|
||||||
},
|
},
|
||||||
[audio, video],
|
[audio, devices, video],
|
||||||
);
|
);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// We setup a event listener for the widget action ElementWidgetActions.DeviceMute.
|
// We setup a event listener for the widget action ElementWidgetActions.DeviceMute.
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export const SettingsModal: FC<Props> = ({
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{iosDeviceMenu && (
|
{iosDeviceMenu && controlledAudioDevices && (
|
||||||
<Button
|
<Button
|
||||||
onClick={(e): void => {
|
onClick={(e): void => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user