From ed6af04570879af4cee53466a9b1725a6fcac8e7 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 16 Jun 2024 22:23:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/src/py/call.rs | 1 - ica-rs/src/tailchat/events.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ica-rs/src/py/call.rs b/ica-rs/src/py/call.rs index 7859c4a..0fa34ef 100644 --- a/ica-rs/src/py/call.rs +++ b/ica-rs/src/py/call.rs @@ -146,7 +146,6 @@ pub async fn ica_delete_message_py(msg_id: ica::MessageId, client: &Client) { pub async fn tailchat_new_message_py( message: &tailchat::messages::ReceiveMessage, client: &Client, - status: Arc, ) { verify_plugins(); diff --git a/ica-rs/src/tailchat/events.rs b/ica-rs/src/tailchat/events.rs index 52fc9f1..0db9cdd 100644 --- a/ica-rs/src/tailchat/events.rs +++ b/ica-rs/src/tailchat/events.rs @@ -62,7 +62,7 @@ pub async fn any_event(event: Event, payload: Payload, _client: Client, _status: } #[allow(clippy::collapsible_if)] -pub async fn on_message(payload: Payload, client: Client, status: Arc) { +pub async fn on_message(payload: Payload, client: Client, _status: Arc) { if let Payload::Text(values) = payload { if let Some(value) = values.first() { let message: ReceiveMessage = match serde_json::from_value(value.clone()) { @@ -85,7 +85,7 @@ pub async fn on_message(payload: Payload, client: Client, status: Arc send_message(&client, &reply).await; } } - crate::py::call::tailchat_new_message_py(&message, &client, status.clone()).await; + crate::py::call::tailchat_new_message_py(&message, &client).await; } } }