Add support for sending view once messages

Closes #1812
This commit is contained in:
AsamK committed 2025-07-14 16:42:06 +02:00
1 parent c924d5c03a
commit 7c7fc76a64
8 files changed
+21

No files matched your search

+3
View File
@@ -179,6 +179,9 @@ pub enum CliCommands {
#[arg(short = 'a', long)]
attachment: Vec<String>,
#[arg(long)]
view_once: bool,
#[arg(long)]
mention: Vec<String>,
+1
View File
@@ -183,6 +183,7 @@ pub trait Rpc {
endSession: bool,
message: String,
attachments: Vec<String>,
view_once: bool,
mentions: Vec<String>,
textStyle: Vec<String>,
quoteTimestamp: Option<u64>,
+2
View File
@@ -144,6 +144,7 @@ async fn handle_command(
end_session,
message,
attachment,
view_once,
mention,
text_style,
quote_timestamp,
@@ -170,6 +171,7 @@ async fn handle_command(
end_session,
message.unwrap_or_default(),
attachment,
view_once,
mention,
text_style,
quote_timestamp,