From cd67c5b94d432a37bde2e2a6dd1695abbf089402 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 12 Jun 2024 01:09:20 +0800 Subject: [PATCH] 0.6.7 --- Cargo.lock | 2 +- ica-rs/Cargo.toml | 2 +- ica-rs/src/ica/events.rs | 3 ++- ica-rs/src/main.rs | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 215bec9..0e442ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -659,7 +659,7 @@ dependencies = [ [[package]] name = "ica-rs" -version = "0.6.6" +version = "0.6.7" dependencies = [ "anyhow", "base64 0.22.1", diff --git a/ica-rs/Cargo.toml b/ica-rs/Cargo.toml index f228099..ec3707e 100644 --- a/ica-rs/Cargo.toml +++ b/ica-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ica-rs" -version = "0.6.6" +version = "0.6.7" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/ica-rs/src/ica/events.rs b/ica-rs/src/ica/events.rs index ceffb8e..9183efc 100644 --- a/ica-rs/src/ica/events.rs +++ b/ica-rs/src/ica/events.rs @@ -122,10 +122,11 @@ pub async fn any_event(event: Event, payload: Payload, _client: Client) { "setAllChatGroups", // 忽略的 "notify", + "syncRead", // 同步已读 "closeLoading", // 发送消息/加载新聊天 有一个 loading "renewMessage", // 我也不确定到底是啥事件 + "requestSetup", // 需要登录 "updateRoom", - "syncRead", // 同步已读 ]; match &event { Event::Custom(event_name) => { diff --git a/ica-rs/src/main.rs b/ica-rs/src/main.rs index fc1308b..4c5db5d 100644 --- a/ica-rs/src/main.rs +++ b/ica-rs/src/main.rs @@ -25,8 +25,8 @@ pub type MainStatus = status::BotStatus; pub type StopGetter = tokio::sync::oneshot::Receiver<()>; pub const VERSION: &str = env!("CARGO_PKG_VERSION"); -pub const ICA_VERSION: &str = "1.5.0"; -pub const TAILCHAT_VERSION: &str = "1.0.0"; +pub const ICA_VERSION: &str = "1.6.0"; +pub const TAILCHAT_VERSION: &str = "1.1.0"; #[macro_export] macro_rules! wrap_callback {