Dm header icons reactive (#190)

* header reactive to noise session

* favorite button reactive

* icon change

* nice
This commit is contained in:
callebtc
2025-07-25 19:50:40 +02:00
committed by GitHub
parent 271df2e720
commit c9aba00478
8 changed files with 166 additions and 33 deletions
@@ -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)
*/