mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 05:05:20 +00:00
on focus (#189)
This commit is contained in:
@@ -306,6 +306,20 @@ class NotificationManager(private val context: Context) {
|
||||
return pendingNotifications.values.sumOf { it.size }
|
||||
}
|
||||
|
||||
/**
|
||||
* Get app background state for reactive read receipts
|
||||
*/
|
||||
fun getAppBackgroundState(): Boolean {
|
||||
return isAppInBackground
|
||||
}
|
||||
|
||||
/**
|
||||
* Get current private chat peer for reactive read receipts
|
||||
*/
|
||||
fun getCurrentPrivateChatPeer(): String? {
|
||||
return currentPrivateChatPeer
|
||||
}
|
||||
|
||||
/**
|
||||
* Get pending notifications for debugging
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user