Add post-grace peer recovery coordinator

This commit is contained in:
2026-06-20 15:37:33 -04:00
parent 5564af02f9
commit 2c93c1c24f
7 changed files with 578 additions and 28 deletions
+5
View File
@@ -200,6 +200,11 @@ pub trait RoomState: Send + Sync {
/// active only after its normal signed `Announce` is received and verified.
async fn rebootstrap_peers(&self, peers: Vec<EndpointAddr>) -> Result<(), NetError>;
/// Remove a peer from the authenticated live roster before background
/// recovery. This only revokes membership; a fresh verified `Announce` is
/// required to add the peer again.
fn mark_peer_disconnected(&self, peer_id: EndpointId);
/// Broadcasts a room text-chat message authored by us (our display name is
/// taken from the current self-state).
async fn send_chat(&self, text: String) -> Result<(), NetError>;