diff --git a/src/chat.rs b/src/chat.rs index e98385c06b..082f25bc68 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -4524,8 +4524,6 @@ pub async fn forward_msgs_2ctx( msg.param.steal(param, Param::Height); msg.param.steal(param, Param::Duration); msg.param.steal(param, Param::MimeType); - msg.param.steal(param, Param::ProtectQuote); - msg.param.steal(param, Param::Quote); msg.param.steal(param, Param::Summary1); if msg.has_html() { msg.set_html(src_msg_id.get_html(ctx_src).await?); diff --git a/src/chat/chat_tests.rs b/src/chat/chat_tests.rs index 7f6c609594..6ecc06a60f 100644 --- a/src/chat/chat_tests.rs +++ b/src/chat/chat_tests.rs @@ -2300,14 +2300,11 @@ async fn test_forward_quote() -> Result<()> { let forwarded_msg = alice.pop_sent_msg().await; let alice_forwarded_msg = bob.recv_msg(&forwarded_msg).await; assert!(alice_forwarded_msg.quoted_message(&alice).await?.is_none()); - assert_eq!( - alice_forwarded_msg.quoted_text(), - Some("Hi Bob".to_string()) - ); + assert!(alice_forwarded_msg.quoted_text().is_none()); let bob_forwarded_msg = bob.get_last_msg().await; assert!(bob_forwarded_msg.quoted_message(&bob).await?.is_none()); - assert_eq!(bob_forwarded_msg.quoted_text(), Some("Hi Bob".to_string())); + assert!(bob_forwarded_msg.quoted_text().is_none()); Ok(()) }