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:
2026-09-15 22:43:17 -04:00
co-authored by Claude Opus 5
parent 908e735933
commit 4cdd221eff
+3 -8
View File
@@ -414,14 +414,9 @@ function CallButton() {
ref={triggerRef}
aria-label="Start call"
onClick={handleOpenMenu}
onContextMenu={(evt) => {
evt.preventDefault();
startCall(room, {
microphone: true,
video: true,
sound: true,
});
}}
// Gitea #25 — removed an undiscoverable onContextMenu shortcut that
// started a camera-on video call directly, bypassing cameraOnJoin and
// the room camera policy. The popout menu already offers Voice/Video.
disabled={inAnotherCall || callStarted}
aria-pressed={!!menuAnchor}
>