Skip to content

Adding confirmation prompt on leave conversation action - #6608

Merged
AndyScherzinger merged 3 commits into
masterfrom
issue-6607-confirmation-prompt
Sep 2, 2026
Merged

Adding confirmation prompt on leave conversation action#6608
AndyScherzinger merged 3 commits into
masterfrom
issue-6607-confirmation-prompt

Conversation

@rapterjet2004

Copy link
Copy Markdown
Contributor

fix(conversationlist): Add confirmation dialog before leaving a conversation via swipe

Swiping left on a conversation triggered leaving it immediately with no way to confirm or cancel, making it easy to accidentally leave a group. Show a confirmation dialog, matching the existing delete conversation dialog pattern.

🖼️ Screenshots

Screenshot 2026-08-28 at 12 21 16 PM

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

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

@rapterjet2004 rapterjet2004 self-assigned this Aug 28, 2026
@rapterjet2004 rapterjet2004 added the 3. to review Waiting for reviews label Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/33194320039/artifacts/9695340256
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@rapterjet2004
rapterjet2004 requested a review from mahibi August 28, 2026 18:08
@AndyScherzinger

Copy link
Copy Markdown
Member

fine for starters I suppose @rapterjet2004 but see my original comment that this should be a snackbar with faked/delayed execution, see #6607 (comment) - we should not block users with modals - neither does email but gives you a way to restore.

So fine to merge I think, but we should improve this in the future.

@rapterjet2004

rapterjet2004 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Implemented the suggestions

Screen_recording_20260831_095409.webm

…rsation via swipe

Swiping left on a conversation triggered leaving it immediately with
no way to confirm or cancel, making it easy to accidentally leave a
group. Show a confirmation dialog, matching the existing delete
conversation dialog pattern.

Fixes #6607

Signed-off-by: rapterjet2004 <[email protected]>
…ackbar

The blocking confirmation dialog interrupted the swipe-to-leave flow.
Show a snackbar with an Undo action instead, matching the pattern
email clients use. The room is hidden optimistically and the actual
leave request is only sent once the snackbar times out without being
undone, so leaving stays reversible even for rooms only a moderator
could re-add you to.

Addresses review feedback on #6607

Signed-off-by: rapterjet2004 <[email protected]>
@mahibi
mahibi force-pushed the issue-6607-confirmation-prompt branch from aecc42d to d44bec1 Compare September 2, 2026 08:47
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/33610575498/artifacts/9840628929
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@AndyScherzinger AndyScherzinger added this to the 25.1.0 milestone Sep 2, 2026
@AndyScherzinger

Copy link
Copy Markdown
Member

/backport to stable-25.0.x

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/33621972027/artifacts/9845101817
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@AndyScherzinger
AndyScherzinger merged commit 2b6aaca into master Sep 2, 2026
18 of 21 checks passed
@AndyScherzinger
AndyScherzinger deleted the issue-6607-confirmation-prompt branch September 2, 2026 17:01
@backportbot

backportbot Bot commented Sep 2, 2026

Copy link
Copy Markdown

The backport to stable-25.0.x failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable-25.0.x
git pull origin stable-25.0.x

# Create the new backport branch
git checkout -b backport/6608/stable-25.0.x

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 9c7d97d7 d44bec19 08188ef9

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/6608/stable-25.0.x

Error: Failed to clone repository: Failed to create working tree: error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401
fatal: expected flush after ref listing


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@AndyScherzinger

Copy link
Copy Markdown
Member

/backport to stable-25.0.x

@backportbot

backportbot Bot commented Sep 2, 2026

Copy link
Copy Markdown

The backport to stable-25.0.x failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable-25.0.x
git pull origin stable-25.0.x

# Create the new backport branch
git checkout -b backport/6608/stable-25.0.x

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 9c7d97d7 d44bec19 08188ef9

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/6608/stable-25.0.x

Error: Failed to clone repository: Failed to create working tree: error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401
fatal: expected flush after ref listing


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Confirmation Prompt before leaving a group.

3 participants