feat(#2482): bootstrap cross-signing so agent matrix devices show verified

This commit is contained in:
damocles 2026-07-15 18:12:13 +02:00 committed by mara
commit 0d40583991
2 changed files with 57 additions and 4 deletions

View file

@ -286,6 +286,10 @@ async fn bring_up_account(
// the live (authenticated, correct-homeserver) Client. Replaces the old
// curl oneshot; failures are swallowed inside sync_avatar.
client::sync_avatar(&client, &cfg.state_dir, &cfg.name).await;
// Best-effort: bootstrap cross-signing so the account's device isn't
// flagged "unverified" in other users' clients. Idempotent + swallows
// failures (a UIAA-requiring homeserver) inside ensure_cross_signing.
client::ensure_cross_signing(&client, &cfg.name).await;
timeline::install_message_handler(&client, hyperhive_socket.to_path_buf(), tag.clone());
let sync_client = client.clone();