mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 10:05:21 +00:00
Dm header icons reactive (#190)
* header reactive to noise session * favorite button reactive * icon change * nice
This commit is contained in:
@@ -157,6 +157,13 @@ class NoiseSessionManager(
|
||||
return hasSession
|
||||
}
|
||||
|
||||
/**
|
||||
* Get session state for a peer (for UI state display)
|
||||
*/
|
||||
fun getSessionState(peerID: String): NoiseSession.NoiseSessionState {
|
||||
return getSession(peerID)?.getState() ?: NoiseSession.NoiseSessionState.Uninitialized
|
||||
}
|
||||
|
||||
/**
|
||||
* Get remote static public key for a peer (if session established)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user