Clear recipient remap cache on restore.

This commit is contained in:
Cody Henthorne
2025-10-29 10:33:14 -04:00
committed by jeffrey-signal
parent 5640e9c9b8
commit 908ca124f1
2 changed files with 6 additions and 0 deletions

View File

@@ -112,6 +112,10 @@ class RemappedRecordTables internal constructor(context: Context?, databaseHelpe
.run()
}
fun clearCache() {
RemappedRecords.getInstance().resetCache()
}
private fun trimInvalidRecipientEntries(db: SQLiteDatabase) {
val count = db.delete(Recipients.TABLE_NAME)
.where("$OLD_ID IN (SELECT $ID FROM ${RecipientTable.TABLE_NAME})")