fix(merge): reconcile build_message custom_emoji_tags arg + dedup tauri allow attr

Post-merge fixes for desktop-tauri compile (clippy compiles tests):
- build_message gained custom_emoji_tags param from main; pass &[] in the
  three serverless test/helper call sites (channels_tests, encrypted)
- remove duplicate #[allow(too_many_arguments)] left by the merge
This commit is contained in:
Michael Neale
2026-06-04 15:18:46 +10:00
parent 4c49c8f521
commit ea77a0bcfe
3 changed files with 4 additions and 3 deletions

View File

@@ -397,6 +397,7 @@ async fn serverless_burst_no_rate_limit() {
None,
&[],
&[],
&[],
)
.expect("build message");
let resp = submit_event(builder, &state)
@@ -469,7 +470,7 @@ async fn serverless_live_subscription_multi_relay() {
// 2. Publish a message (multi-relay fanout — lands wherever accepts).
let builder =
crate::events::build_message(channel, &secret, None, &[], &[]).expect("build message");
crate::events::build_message(channel, &secret, None, &[], &[], &[]).expect("build message");
let resp = submit_event(builder, &state).await.expect("publish");
eprintln!(
"published: accepted={} msg={:?}",

View File

@@ -406,7 +406,6 @@ async fn resolve_thread_ref(
// arg count is idiomatic here rather than a struct.
#[allow(clippy::too_many_arguments)]
#[tauri::command]
#[allow(clippy::too_many_arguments)]
pub async fn send_channel_message(
channel_id: String,
content: String,

View File

@@ -325,7 +325,8 @@ mod tests {
// Build the rumor exactly as the command does for an encrypted reply.
let builder =
events::build_message(channel, "threaded reply", Some(&thread_ref), &[], &[]).unwrap();
events::build_message(channel, "threaded reply", Some(&thread_ref), &[], &[], &[])
.unwrap();
let rumor = builder.build(a.public_key());
let recipients = [a.public_key(), b.public_key()];