mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-10 10:24:44 +00:00
review
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user