also stop provisioning the hive space and make hivectl matrix invite take a room
This commit is contained in:
parent
c0dc4b07f4
commit
fd01848d4d
1 changed files with 83 additions and 437 deletions
|
|
@ -12,7 +12,7 @@ use crate::cli::MatrixCmd;
|
|||
/// dispatch match so the top-level router stays small.
|
||||
pub(crate) async fn run_matrix_cmd(socket: &Path, cmd: MatrixCmd) -> Result<()> {
|
||||
match cmd {
|
||||
MatrixCmd::Invite { user, room } => matrix_invite(socket, &user, room.as_deref()).await,
|
||||
MatrixCmd::Invite { user, room } => matrix_invite(socket, &user, &room).await,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -36,12 +36,12 @@ async fn matrix_request(socket: &Path, req: hive_host_sock::HostRequest) -> Resu
|
|||
Ok(())
|
||||
}
|
||||
|
||||
async fn matrix_invite(socket: &Path, user: &str, room: Option<&str>) -> Result<()> {
|
||||
async fn matrix_invite(socket: &Path, user: &str, room: &str) -> Result<()> {
|
||||
matrix_request(
|
||||
socket,
|
||||
hive_host_sock::HostRequest::MatrixInvite {
|
||||
user: user.to_owned(),
|
||||
room: room.map(str::to_owned),
|
||||
room: room.to_owned(),
|
||||
},
|
||||
)
|
||||
.await
|
||||
|
|
|
|||
Loading…
Reference in a new issue