fix(calls): remove the hidden right-click camera-on call shortcut
Fixes #25 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
This commit is contained in:
@@ -414,14 +414,9 @@ function CallButton() {
|
|||||||
ref={triggerRef}
|
ref={triggerRef}
|
||||||
aria-label="Start call"
|
aria-label="Start call"
|
||||||
onClick={handleOpenMenu}
|
onClick={handleOpenMenu}
|
||||||
onContextMenu={(evt) => {
|
// Gitea #25 — removed an undiscoverable onContextMenu shortcut that
|
||||||
evt.preventDefault();
|
// started a camera-on video call directly, bypassing cameraOnJoin and
|
||||||
startCall(room, {
|
// the room camera policy. The popout menu already offers Voice/Video.
|
||||||
microphone: true,
|
|
||||||
video: true,
|
|
||||||
sound: true,
|
|
||||||
});
|
|
||||||
}}
|
|
||||||
disabled={inAnotherCall || callStarted}
|
disabled={inAnotherCall || callStarted}
|
||||||
aria-pressed={!!menuAnchor}
|
aria-pressed={!!menuAnchor}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user