Skip to content

fix: show leave call button for guests - #19318

Closed
AmarjeetKushwaha21 wants to merge 1 commit into
nextcloud:mainfrom
AmarjeetKushwaha21:fix/guest-leave-call
Closed

fix: show leave call button for guests#19318
AmarjeetKushwaha21 wants to merge 1 commit into
nextcloud:mainfrom
AmarjeetKushwaha21:fix/guest-leave-call

Conversation

@AmarjeetKushwaha21

Copy link
Copy Markdown

Resolves

Fix #18844

What changed

The Leave Call button was only shown when the conversation was in READ_WRITE state.

Guests in voice rooms can be connected to a call while the conversation is read-only, which prevented them from seeing the Leave Call button.

This change makes the Leave Call button depend on the actual call state instead of the conversation read/write state.

Testing

  • Verified the change with git diff --check.
  • The project build could not be completed because the local Yarn Plug'n'Play setup reports browserslist as an undeclared dependency.

AI

  • The content of this PR was partly or fully generated using AI

Copilot AI lite review requested due to automatic review settings September 6, 2026 12:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is minimal, directly addresses the reported UI bug, and relies on the existing isInCall signal used throughout the component’s call-button rendering paths.

Pull request overview

Fixes the “Leave call” button visibility for guests in voice rooms by basing it on actual call participation rather than the conversation’s read/write state, aligning the UI with real call connectivity (Issue #18844).

Changes:

  • Updated showLeaveCallButton() to return isInCall unconditionally (removing the READ_WRITE gating).
  • Keeps “Start/Join call” gating unchanged while ensuring “Leave call” is always available when the user is in a call.
File summaries
File Description
src/components/TopBar/CallButton.vue Adjusts leave-call button visibility logic to depend only on call state (isInCall).
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is minimal, targeted, and directly addresses the reported UI logic bug without introducing broader behavioral changes.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@Antreesy Antreesy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change is unrelated to the linked issue. Read-write state has nothing to do with voice rooms

@Antreesy Antreesy closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guests in voice-rooms do not see "Leave call" button

3 participants