Allow opting out of key transparency.

This commit is contained in:
Michelle Tang
2026-01-30 13:48:01 -05:00
committed by Greyson Parrelli
parent 423b8c942c
commit a11888ff71
11 changed files with 98 additions and 5 deletions

View File

@@ -4048,6 +4048,14 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
.run()
}
fun clearAllKeyTransparencyData() {
writableDatabase
.update(TABLE_NAME)
.values(KEY_TRANSPARENCY_DATA to null)
.where("$KEY_TRANSPARENCY_DATA IS NOT NULL")
.run()
}
/**
* Will update the database with the content values you specified. It will make an intelligent
* query such that this will only return true if a row was *actually* updated.