别骂了别骂了

This commit is contained in:
shenjack 2024-06-05 00:15:11 +08:00
parent 3a2352d15f
commit 6bbbaf4cc6
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -274,8 +274,8 @@ impl NewMessage {
pub fn new(room_id: RoomId, msg: Message) -> Self { Self { room_id, msg } } pub fn new(room_id: RoomId, msg: Message) -> Self { Self { room_id, msg } }
/// 创建一条对这条消息的回复 /// 创建一条对这条消息的回复
pub fn reply_with(&self, content: &String) -> SendMessage { pub fn reply_with(&self, content: &str) -> SendMessage {
SendMessage::new(content.clone(), self.room_id, Some(self.msg.as_reply())) SendMessage::new(content.to_string(), self.room_id, Some(self.msg.as_reply()))
} }
/// 作为被删除的消息 /// 作为被删除的消息