mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add retention period to meshLog. Defaults to 7 days, with a settings dropdown to change (#4078)
This commit is contained in:
parent
dc9e51f18f
commit
6f338c4cde
12 changed files with 396 additions and 8 deletions
|
|
@ -56,4 +56,7 @@ interface MeshLogDao {
|
|||
|
||||
@Query("DELETE FROM log WHERE from_num = :fromNum AND port_num = :portNum")
|
||||
suspend fun deleteLogs(fromNum: Int, portNum: Int)
|
||||
|
||||
@Query("DELETE FROM log WHERE received_date < :cutoffTimestamp")
|
||||
suspend fun deleteOlderThan(cutoffTimestamp: Long)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue