Remove ghost sync (#468)

* delete stale peers and messages from sync manager

* ignore old announcenements
This commit is contained in:
callebtc
2025-10-12 19:41:44 +02:00
committed by GitHub
parent ad28cc710c
commit c61347defe
4 changed files with 95 additions and 11 deletions
@@ -0,0 +1,10 @@
package com.bitchat.android.util
/**
* Centralized application-wide constants.
*/
object AppConstants {
// Peer staleness threshold (ms). Keep consistent across mesh and sync layers.
const val STALE_PEER_TIMEOUT_MS: Long = 180_000L // 3 minutes
}