Add a deduplicate message feature

- Adds a new class of features for message management.
- Adds a manual option to find and delete duplicate messages
- Adds a setting to automatically delete duplicates during sync
- Adds a sha256 hashing function

Co-authored-by: octoshrimpy <octoshrimpy@users.noreply.github.com>
This commit is contained in:
Inhishonor
2026-01-10 13:34:37 -08:00
parent b4bce2c1a9
commit c1d824abbc
24 changed files with 539 additions and 3 deletions
@@ -86,6 +86,7 @@
<string name="drawer_scheduled">Scheduled</string>
<string name="drawer_blocking">Blocking</string>
<string name="drawer_more">More</string>
<string name="message_management_title">Message Management</string>
<string name="drawer_settings">Settings</string>
<string name="drawer_plus" translatable="false">DEPRECATED - drawer_plus</string>
<string name="drawer_help">Help &amp; feedback</string>
@@ -387,6 +388,16 @@
<item quantity="other">Continue to %s and allow these numbers</item>
</plurals>
<string name="deduplicate_messages_category">Deduplicate Messages</string>
<string name="deduplicate_messages_title">Remove Duplicate Messages</string>
<string name="deduplicate_messages_summary">Scans through message database and deletes all messages that exactly match original messages</string>
<string name="deduplicate_message_confirmation_dialog_message">Your message database will be scanned for duplicates, and then those duplicates will be removed.\nThis will automatically delete messages, only proceed if you understand the consequences.</string>
<string name="auto_deduplicate_messages_title">Automatically Deduplicate Messages</string>
<string name="auto_deduplicate_messages_summary">Deduplication will be performed during sync. Please note, this will automatically delete messages, and while the chance of there being a false duplicate is very low, it is still possible.\nPlease exercise caution.</string>
<string name="deduplicating_messages_finished">Finished deduplicating messages!</string>
<string name="deduplicating_messages_no_messages">No duplicate messages found.</string>
<string name="deduplicating_messages_failed">Deduplicating messages failed, please try again</string>
<string name="about_title">About</string>
<string name="about_version_title">Version</string>
<string name="about_developer_title">Developer</string>