清理一下

This commit is contained in:
shenjack 2024-03-29 02:06:55 +08:00
parent e423745a2c
commit 0dad42c3ca
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,7 @@ pub type RoomId = i64;
pub type UserId = i64; pub type UserId = i64;
pub type MessageId = String; pub type MessageId = String;
#[allow(unused)]
pub trait RoomIdTrait { pub trait RoomIdTrait {
fn is_room(&self) -> bool; fn is_room(&self) -> bool;
fn is_chat(&self) -> bool { !self.is_room() } fn is_chat(&self) -> bool { !self.is_room() }

View File

@ -31,6 +31,7 @@ impl<'de> Deserialize<'de> for At {
} }
} }
#[allow(unused)]
pub trait MessageTrait { pub trait MessageTrait {
fn is_reply(&self) -> bool; fn is_reply(&self) -> bool;
fn is_from_self(&self) -> bool { fn is_from_self(&self) -> bool {

View File

@ -78,8 +78,6 @@ pub const ICA_DELETE_MESSAGE_FUNC: &str = "on_ica_delete_message";
pub const TAILCHAT_NEW_MESSAGE_FUNC: &str = "on_tailchat_message"; pub const TAILCHAT_NEW_MESSAGE_FUNC: &str = "on_tailchat_message";
/// 执行 newpub const MATRIX_NEW_MESSAGE_FUNC: &str = "on_matrix_message";
/// 执行 new message 的 python 插件 /// 执行 new message 的 python 插件
pub async fn ica_new_message_py(message: &NewMessage, client: &Client) { pub async fn ica_new_message_py(message: &NewMessage, client: &Client) {
// 验证插件是否改变 // 验证插件是否改变