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; } } }