清理一下
This commit is contained in:
parent
e423745a2c
commit
0dad42c3ca
@ -11,6 +11,7 @@ pub type RoomId = i64;
|
||||
pub type UserId = i64;
|
||||
pub type MessageId = String;
|
||||
|
||||
#[allow(unused)]
|
||||
pub trait RoomIdTrait {
|
||||
fn is_room(&self) -> bool;
|
||||
fn is_chat(&self) -> bool { !self.is_room() }
|
||||
|
@ -31,6 +31,7 @@ impl<'de> Deserialize<'de> for At {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub trait MessageTrait {
|
||||
fn is_reply(&self) -> bool;
|
||||
fn is_from_self(&self) -> bool {
|
||||
|
@ -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";
|
||||
|
||||
/// 执行 newpub const MATRIX_NEW_MESSAGE_FUNC: &str = "on_matrix_message";
|
||||
|
||||
/// 执行 new message 的 python 插件
|
||||
pub async fn ica_new_message_py(message: &NewMessage, client: &Client) {
|
||||
// 验证插件是否改变
|
||||
|
Loading…
Reference in New Issue
Block a user