mirror of
https://github.com/Mail-0/Zero.git
synced 2026-07-01 08:16:28 +00:00
# Implement Thread Deletion Functionality ## Description This PR implements thread deletion functionality, allowing users to permanently delete threads from the bin. The implementation includes: 1. Replacing the optimistic delete with a real deletion using TRPC mutation 2. Enabling the previously disabled delete button in the thread context menu 3. Adding server-side support for thread deletion from the database 4. Adding folder name normalization to handle 'bin' vs 'trash' naming differences ## Type of Change - [x] ✨ New feature (non-breaking change which adds functionality) - [x] 🐛 Bug fix (non-breaking change which fixes an issue) ## Areas Affected - [x] Email Integration (Gmail, IMAP, etc.) - [x] User Interface/Experience - [x] Data Storage/Management ## Testing Done - [x] Manual testing performed ## Checklist - [x] I have performed a self-review of my code - [x] My changes generate no new warnings ## Additional Notes The implementation now properly deletes threads from the database when the user selects the delete option from the context menu. The UI provides toast notifications to indicate the deletion status. _By submitting this pull request, I confirm that my contribution is made under the terms of the project's license._