hive-matrix-mcp: probe whoami through swarm-matrix-client
This commit is contained in:
parent
1d22041f82
commit
b17da10cfc
2 changed files with 67 additions and 95 deletions
|
|
@ -723,7 +723,9 @@ fn forbidden_invite(membership: Option<&str>, user_id: &str, room_id: &str) -> R
|
|||
tracing::debug!(%user_id, %room_id, "matrix: invite refused, user already member/invited");
|
||||
return Ok(());
|
||||
}
|
||||
anyhow::bail!("matrix: invite {user_id} to {room_id}: HTTP 403 and the user is not invited or joined")
|
||||
anyhow::bail!(
|
||||
"matrix: invite {user_id} to {room_id}: HTTP 403 and the user is not invited or joined"
|
||||
)
|
||||
}
|
||||
|
||||
/// Invite an arbitrary Matrix user to the hive Space (default) or an
|
||||
|
|
@ -1044,7 +1046,6 @@ mod tests {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// Serve a fake homeserver on loopback: `!space` is an `m.space` and
|
||||
/// `!chat` a plain room, both named "shared"; `!decoy` is a plain room
|
||||
/// named "other". Returns the base URL and the server task.
|
||||
|
|
|
|||
Loading…
Reference in a new issue