mirror of
https://github.com/block/buzz.git
synced 2026-11-02 07:22:55 +00:00
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:
@@ -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={:?}",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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()];
|
||||
|
||||
Reference in New Issue
Block a user