Prevent deleting call events with DELETION_TIMESTAMP set to 0.
This commit is contained in:
parent
3451ac4504
commit
d77555266b
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue