derive per-agent egress entries from operator-linked accounts
This commit is contained in:
parent
7eb9db47d6
commit
9193f37963
1 changed files with 852 additions and 38 deletions
|
|
@ -180,6 +180,15 @@ pub async fn put_matrix_account(
|
|||
let user_id = link_matrix(&store, &secret_path, &existing(&agent, &account), &req)
|
||||
.await
|
||||
.map_err(|b| *b)?;
|
||||
crate::link_egress::added(
|
||||
&state,
|
||||
&agent,
|
||||
&crate::link_egress::Link::Matrix {
|
||||
account: &account,
|
||||
homeserver: req.homeserver.as_deref(),
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
tracing::info!(%hive, %agent, %account, "credential stored");
|
||||
Ok(Json(PutMatrixAccountResponse { user_id }))
|
||||
|
|
|
|||
Loading…
Reference in a new issue