mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Prevent deleting call events with DELETION_TIMESTAMP set to 0.
This commit is contained in:
committed by
Greyson Parrelli
parent
3451ac4504
commit
d77555266b
@@ -201,10 +201,10 @@ class CallTable(context: Context, databaseHelper: SignalDatabase) : DatabaseTabl
|
||||
.readToSingleLong(0L)
|
||||
}
|
||||
|
||||
fun deleteCallEventsDeletedBefore(threshold: Long) {
|
||||
writableDatabase
|
||||
fun deleteCallEventsDeletedBefore(threshold: Long): Int {
|
||||
return writableDatabase
|
||||
.delete(TABLE_NAME)
|
||||
.where("$DELETION_TIMESTAMP <= ?", threshold)
|
||||
.where("$DELETION_TIMESTAMP > 0 AND $DELETION_TIMESTAMP <= ?", threshold)
|
||||
.run()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user