X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/6cd57312a1396543f14b243ff19d2cf0db973588..a96626c4685cfaf589deea45ff2d46e5d6883f3c:/client/src/jsonrpc.rs diff --git a/client/src/jsonrpc.rs b/client/src/jsonrpc.rs index 266047c2..6598d525 100644 --- a/client/src/jsonrpc.rs +++ b/client/src/jsonrpc.rs @@ -247,6 +247,15 @@ pub trait Rpc { stop: bool, ) -> Result; + #[method(name = "sendMessageRequestResponse", param_kind = map)] + fn send_message_request_response( + &self, + account: Option, + recipients: Vec, + #[allow(non_snake_case)] groupIds: Vec, + r#type: String, + ) -> Result; + #[method(name = "setPin", param_kind = map)] fn set_pin(&self, account: Option, pin: String) -> Result; @@ -408,6 +417,6 @@ pub async fn connect_unix( Ok(ClientBuilder::default().build_with_tokio(sender, receiver)) } -pub async fn connect_http(uri: &str) -> Result { +pub async fn connect_http(uri: &str) -> Result, Error> { HttpClientBuilder::default().build(uri) }