Add missing username parameter to getUserStatus command in json-rpc client
This commit is contained in:
		
							parent
							
								
									ca33249170
								
							
						
					
					
						commit
						4ce194afe2
					
				@ -84,6 +84,8 @@ pub enum CliCommands {
 | 
			
		||||
    },
 | 
			
		||||
    GetUserStatus {
 | 
			
		||||
        recipient: Vec<String>,
 | 
			
		||||
        #[arg(long)]
 | 
			
		||||
        username: Vec<String>,
 | 
			
		||||
    },
 | 
			
		||||
    JoinGroup {
 | 
			
		||||
        #[arg(long)]
 | 
			
		||||
 | 
			
		||||
@ -70,6 +70,7 @@ pub trait Rpc {
 | 
			
		||||
        &self,
 | 
			
		||||
        account: Option<String>,
 | 
			
		||||
        recipients: Vec<String>,
 | 
			
		||||
        usernames: Vec<String>,
 | 
			
		||||
    ) -> Result<Value, ErrorObjectOwned>;
 | 
			
		||||
 | 
			
		||||
    #[method(name = "joinGroup", param_kind = map)]
 | 
			
		||||
 | 
			
		||||
@ -60,8 +60,13 @@ async fn handle_command(
 | 
			
		||||
                .delete_local_account_data(cli.account, ignore_registered)
 | 
			
		||||
                .await
 | 
			
		||||
        }
 | 
			
		||||
        CliCommands::GetUserStatus { recipient } => {
 | 
			
		||||
            client.get_user_status(cli.account, recipient).await
 | 
			
		||||
        CliCommands::GetUserStatus {
 | 
			
		||||
            recipient,
 | 
			
		||||
            username,
 | 
			
		||||
        } => {
 | 
			
		||||
            client
 | 
			
		||||
                .get_user_status(cli.account, recipient, username)
 | 
			
		||||
                .await
 | 
			
		||||
        }
 | 
			
		||||
        CliCommands::JoinGroup { uri } => client.join_group(cli.account, uri).await,
 | 
			
		||||
        CliCommands::Link { name } => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user