Signal-Android/app/src/main/java/org/thoughtcrime/securesms/database/helpers
Greyson Parrelli e50787ae20 Trim abandoned reactions from backups.
When you create a backup (or do a device transfer), we skip messages
with expiration timers. However, we still (unintentionally) include the
reactions for those messages in the backup.

These 'abandoned' reactions were being associated with newly-sent
messages because the new messages had the same ID's as the expiring
messages we skipped in the backup.

It's worth noting that in order to hit this bug, you have to:
- Have messages that are expiring, but have not expired yet
- Those messages have to have reactions
- Those message have to be the most recent messages in your message table

Fixes #11327
2022-01-18 17:08:53 -05:00
..
ClassicOpenHelper.java Introduce SignalDatabase as the main database entrypoint. 2021-11-18 12:36:52 -05:00
PreKeyMigrationHelper.java Introduce SignalDatabase as the main database entrypoint. 2021-11-18 12:36:52 -05:00
RecipientIdCleanupHelper.java Update SQLCipher to 4.4.3-S8 2021-10-04 21:49:59 -04:00
RecipientIdMigrationHelper.java Update SQLCipher to 4.4.3-S8 2021-10-04 21:49:59 -04:00
SQLCipherMigrationHelper.java Introduce SignalDatabase as the main database entrypoint. 2021-11-18 12:36:52 -05:00
SessionStoreMigrationHelper.java Introduce SignalDatabase as the main database entrypoint. 2021-11-18 12:36:52 -05:00
SignalDatabaseMigrations.kt Trim abandoned reactions from backups. 2022-01-18 17:08:53 -05:00