mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 10:45:21 +00:00
Dm header icons reactive (#190)
* header reactive to noise session * favorite button reactive * icon change * nice
This commit is contained in:
@@ -169,6 +169,13 @@ class EncryptionService(private val context: Context) {
|
||||
return noiseService.hasEstablishedSession(peerID)
|
||||
}
|
||||
|
||||
/**
|
||||
* Get session state for a peer (for UI state display)
|
||||
*/
|
||||
fun getSessionState(peerID: String): com.bitchat.android.noise.NoiseSession.NoiseSessionState {
|
||||
return noiseService.getSessionState(peerID)
|
||||
}
|
||||
|
||||
/**
|
||||
* Get encryption icon state for UI
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user