Fix backup receipt crash.

This commit is contained in:
Cody Henthorne
2025-06-09 14:10:12 -04:00
committed by Greyson Parrelli
parent bf4049d002
commit 18b5354944

View File

@@ -76,7 +76,7 @@ class DonationReceiptTable(context: Context, databaseHelper: SignalDatabase) : D
val (where, whereArgs) = if (type != null) {
"$TYPE = ?" to SqlUtil.buildArgs(type.code)
} else {
"$TYPE != ?" to SqlUtil.buildArgs(InAppPaymentReceiptRecord.Type.RECURRING_DONATION)
"$TYPE != ?" to SqlUtil.buildArgs(InAppPaymentReceiptRecord.Type.RECURRING_BACKUP.code)
}
readableDatabase.query(TABLE_NAME, null, where, whereArgs, null, null, "$DATE DESC").use { cursor ->