X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/15c9d047033f2dd64a677aca8139a3ecd34e9472..7cf3a989bf47dd81f8700dcfb6986ac81e1bf02e:/client/src/main.rs?ds=inline diff --git a/client/src/main.rs b/client/src/main.rs index 03aff481..61cbabf2 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -1,8 +1,7 @@ use std::{path::PathBuf, time::Duration}; use clap::Parser; -use jsonrpsee::core::client::{Subscription, SubscriptionClientT}; -use jsonrpsee::core::Error as RpcError; +use jsonrpsee::core::client::{Error as RpcError, Subscription, SubscriptionClientT}; use serde_json::Value; use tokio::{select, time::sleep}; @@ -408,6 +407,19 @@ async fn handle_command( .get_attachment(cli.account, id, recipient, group_id) .await } + CliCommands::GetAvatar { + contact, + profile, + group_id, + } => { + client + .get_avatar(cli.account, contact, profile, group_id) + .await + } + CliCommands::GetSticker { + pack_id, + sticker_id, + } => client.get_sticker(cli.account, pack_id, sticker_id).await, CliCommands::StartChangeNumber { number, voice,