mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Add missing username parameter to getUserStatus command in json-rpc client
This commit is contained in:
parent
ca33249170
commit
4ce194afe2
3 changed files with 10 additions and 2 deletions
|
@ -84,6 +84,8 @@ pub enum CliCommands {
|
||||||
},
|
},
|
||||||
GetUserStatus {
|
GetUserStatus {
|
||||||
recipient: Vec<String>,
|
recipient: Vec<String>,
|
||||||
|
#[arg(long)]
|
||||||
|
username: Vec<String>,
|
||||||
},
|
},
|
||||||
JoinGroup {
|
JoinGroup {
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
|
|
|
@ -70,6 +70,7 @@ pub trait Rpc {
|
||||||
&self,
|
&self,
|
||||||
account: Option<String>,
|
account: Option<String>,
|
||||||
recipients: Vec<String>,
|
recipients: Vec<String>,
|
||||||
|
usernames: Vec<String>,
|
||||||
) -> Result<Value, ErrorObjectOwned>;
|
) -> Result<Value, ErrorObjectOwned>;
|
||||||
|
|
||||||
#[method(name = "joinGroup", param_kind = map)]
|
#[method(name = "joinGroup", param_kind = map)]
|
||||||
|
|
|
@ -60,8 +60,13 @@ async fn handle_command(
|
||||||
.delete_local_account_data(cli.account, ignore_registered)
|
.delete_local_account_data(cli.account, ignore_registered)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
CliCommands::GetUserStatus { recipient } => {
|
CliCommands::GetUserStatus {
|
||||||
client.get_user_status(cli.account, recipient).await
|
recipient,
|
||||||
|
username,
|
||||||
|
} => {
|
||||||
|
client
|
||||||
|
.get_user_status(cli.account, recipient, username)
|
||||||
|
.await
|
||||||
}
|
}
|
||||||
CliCommands::JoinGroup { uri } => client.join_group(cli.account, uri).await,
|
CliCommands::JoinGroup { uri } => client.join_group(cli.account, uri).await,
|
||||||
CliCommands::Link { name } => {
|
CliCommands::Link { name } => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue