Skip to content

fix(#610): a bulk delete says what it actually did - #618

Open
an1ndra wants to merge 1 commit into
Developfrom
fix/610-bulk-delete-permanent
Open

an1ndra wants to merge 1 commit into
Developfrom
fix/610-bulk-delete-permanent

Conversation

@an1ndra

@an1ndra an1ndra commented Dec 6, 2026

Copy link
Copy Markdown
Owner

Deleting a selection goes through the same call as deleting one chat, so it already followed the permanent-delete setting. The bar afterwards said "%d conversations moved to trash" and offered an Undo that called restoreFromTrash on rows that no longer existed, which made an erased batch look like a Trash move.

BulkDelete.undoable() now holds that decision in one place. The redesigned list reports an erased batch as "%d conversations deleted" through showNotice (same single snackbar, no action button), and the legacy list mirrors it. convo_deleted_count is in all 14 values directories.

Tests: BulkDeleteTest and BulkDeleteWiringTest; test-610-bulk-delete-permanent.sh was red 12/2 on the old build and is green 14/0 now.


name: Messages
about: Kotlin + Compose SMS app. Every change needs a JUnit test and a scripts/test-*.sh run.
title: ""
labels: []

What changed

Why

Testing

  • ./gradlew testDebugUnitTest passes
  • JUnit test added under app/src/test/java/ for the changed logic
  • scripts/test-*.sh added, and it fails before the fix / passes after

Related issue

Closes #

Deleting a selection goes through the same call as deleting one chat, so it
already followed the permanent-delete setting. The bar afterwards said "%d
conversations moved to trash" and offered an Undo that called restoreFromTrash
on rows that no longer existed, which made an erased batch look like a Trash
move.

BulkDelete.undoable() now holds that decision in one place. The redesigned list
reports an erased batch as "%d conversations deleted" through showNotice (same
single snackbar, no action button), and the legacy list mirrors it.
convo_deleted_count is in all 14 values directories.

Tests: BulkDeleteTest and BulkDeleteWiringTest; test-610-bulk-delete-permanent.sh
was red 12/2 on the old build and is green 14/0 now.
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.

1 participant