mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-08-08 06:46:11 +00:00
* adding notification for active peers + tests * adding a recently seen peer set to track if we've seen that peer before * changing back to notificationManager naming * fixing some weird formatting that occurred during merge conflict fix
13 lines
382 B
Kotlin
13 lines
382 B
Kotlin
package com.bitchat.android.util
|
|
|
|
class NotificationIntervalManager {
|
|
private var _lastNetworkNotificationTime = 0L
|
|
val lastNetworkNotificationTime: Long
|
|
get() = _lastNetworkNotificationTime
|
|
|
|
val recentlySeenPeers: MutableSet<String> = mutableSetOf()
|
|
|
|
fun setLastNetworkNotificationTime(notificationTime: Long) {
|
|
_lastNetworkNotificationTime = notificationTime
|
|
}
|
|
} |