mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Use correct index when deleting old log lines.
This commit is contained in:
committed by
Greyson Parrelli
parent
3772df146a
commit
d0b53f21bd
@@ -174,7 +174,7 @@ class LogDatabase private constructor(
|
||||
}
|
||||
|
||||
db.delete(TABLE_NAME)
|
||||
.where("($CREATED_AT < ? AND $KEEP_LONGER = 0) OR ($CREATED_AT < ? AND $KEEP_LONGER = 1)", currentTime - DEFAULT_LIFESPAN, currentTime - LONGER_LIFESPAN)
|
||||
.where("($CREATED_AT < ? AND $KEEP_LONGER <= 0) OR ($CREATED_AT < ? AND $KEEP_LONGER => 1)", currentTime - DEFAULT_LIFESPAN, currentTime - LONGER_LIFESPAN)
|
||||
.run()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user