feat: add retention period to meshLog. Defaults to 7 days, with a settings dropdown to change (#4078)

This commit is contained in:
Mac DeCourcy 2026-01-02 10:14:16 -08:00 committed by GitHub
parent dc9e51f18f
commit 6f338c4cde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 396 additions and 8 deletions

View file

@ -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)
}