This commit is contained in:
Timo K
2026-05-04 18:25:04 +02:00
parent e68e62bf41
commit 58f430eb32
2 changed files with 3 additions and 2 deletions

View File

@@ -227,8 +227,6 @@ export const InCallView: FC<InCallViewProps> = ({
const toggleVideo = useBehavior(muteStates.video.toggle$);
const setAudioEnabled = useBehavior(muteStates.audio.setEnabled$);
// This function incorrectly assumes that there is a camera and microphone, which is not always the case.
// TODO: Make sure that this module is resilient when it comes to camera/microphone availability!
useCallViewKeyboardShortcuts(
toggleAudio,
toggleVideo,

View File

@@ -64,7 +64,10 @@ const KeyToReactionMap: Record<string, ReactionOption> = Object.fromEntries(
* @param sendReaction - triggered on (1,2,3,...)
* @param toggleHandRaised - triggered on (h)
* Additionally this method listens to the (escape) key to trigger the onBackButtonPressed callback, which is used to navigate to pip in the native app.
*
* Note: This function incorrectly assumes that there is a camera and microphone, which is not always the case.
*/
// TODO: Make sure that this module is resilient when it comes to camera/microphone availability!
export function useCallViewKeyboardShortcuts(
toggleAudio: (() => void) | null,
toggleVideo: (() => void) | null,