From 4ce194afe28e8918d066b267dec8ea9cf6b4b2a0 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 12 Jul 2025 11:03:54 +0200 Subject: [PATCH 1/1] Add missing username parameter to getUserStatus command in json-rpc client --- client/src/cli.rs | 2 ++ client/src/jsonrpc.rs | 1 + client/src/main.rs | 9 +++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/cli.rs b/client/src/cli.rs index 4ff9d458..e0abb717 100644 --- a/client/src/cli.rs +++ b/client/src/cli.rs @@ -84,6 +84,8 @@ pub enum CliCommands { }, GetUserStatus { recipient: Vec, + #[arg(long)] + username: Vec, }, JoinGroup { #[arg(long)] diff --git a/client/src/jsonrpc.rs b/client/src/jsonrpc.rs index 6598d525..3b6d583b 100644 --- a/client/src/jsonrpc.rs +++ b/client/src/jsonrpc.rs @@ -70,6 +70,7 @@ pub trait Rpc { &self, account: Option, recipients: Vec, + usernames: Vec, ) -> Result; #[method(name = "joinGroup", param_kind = map)] diff --git a/client/src/main.rs b/client/src/main.rs index 68de03d4..6466b2e6 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -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 } => { -- 2.50.1