mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 09:25:19 +00:00
Fix active peer notification in background logic
This commit is contained in:
@@ -174,6 +174,11 @@ class NotificationManager(
|
||||
}
|
||||
|
||||
fun showActiveUserNotification(peers: List<String>) {
|
||||
if (peers.isEmpty()) {
|
||||
notificationIntervalManager.recentlySeenPeers.clear()
|
||||
return
|
||||
}
|
||||
|
||||
val currentTime = System.currentTimeMillis()
|
||||
val activePeerNotificationIntervalExceeded =
|
||||
(currentTime - notificationIntervalManager.lastNetworkNotificationTime) > ACTIVE_PEERS_NOTIFICATION_TIME_INTERVAL
|
||||
|
||||
Reference in New Issue
Block a user