还是在new里面去掉 sticker
This commit is contained in:
parent
c65a2229cc
commit
b349cdf4af
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -653,7 +653,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ica-rs"
|
||||
version = "0.6.2"
|
||||
version = "0.6.3"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"base64 0.22.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ica-rs"
|
||||
version = "0.6.2"
|
||||
version = "0.6.3"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
@ -275,7 +275,7 @@ impl NewMessage {
|
||||
|
||||
/// 创建一条对这条消息的回复
|
||||
pub fn reply_with(&self, content: &String) -> SendMessage {
|
||||
SendMessage::new(content.clone(), self.room_id, Some(self.msg.as_reply()), false)
|
||||
SendMessage::new(content.clone(), self.room_id, Some(self.msg.as_reply()))
|
||||
}
|
||||
|
||||
/// 作为被删除的消息
|
||||
@ -314,7 +314,6 @@ impl SendMessage {
|
||||
content: String,
|
||||
room_id: RoomId,
|
||||
reply_to: Option<ReplyMessage>,
|
||||
sticker: bool,
|
||||
) -> Self {
|
||||
Self {
|
||||
content,
|
||||
@ -322,7 +321,7 @@ impl SendMessage {
|
||||
reply_to,
|
||||
at: json!([]),
|
||||
file_data: None,
|
||||
sticker,
|
||||
sticker: false,
|
||||
}
|
||||
}
|
||||
|
||||
@ -341,6 +340,7 @@ impl SendMessage {
|
||||
}
|
||||
}
|
||||
|
||||
/// 被删除的消息
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct DeleteMessage {
|
||||
#[serde(rename = "roomId")]
|
||||
|
@ -51,7 +51,6 @@ pub async fn start_ica(config: &IcaConfig, stop_reciver: StopGetter) -> ClientRe
|
||||
format!("shenbot v {}\nica-async-rs v{}", crate::VERSION, crate::ICA_VERSION),
|
||||
*room,
|
||||
None,
|
||||
false,
|
||||
);
|
||||
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user