mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Do not return a quoted message for forwarded messages
For forwarded messages, parent message is not a quoted message.
This commit is contained in:
@@ -877,7 +877,7 @@ impl Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn quoted_message(&self, context: &Context) -> Result<Option<Message>> {
|
pub async fn quoted_message(&self, context: &Context) -> Result<Option<Message>> {
|
||||||
if self.param.get(Param::Quote).is_some() {
|
if self.param.get(Param::Quote).is_some() && !self.is_forwarded() {
|
||||||
if let Some(in_reply_to) = &self.in_reply_to {
|
if let Some(in_reply_to) = &self.in_reply_to {
|
||||||
if let Some((_, _, msg_id)) = rfc724_mid_exists(context, in_reply_to).await? {
|
if let Some((_, _, msg_id)) = rfc724_mid_exists(context, in_reply_to).await? {
|
||||||
let msg = Message::load_from_db(context, msg_id).await?;
|
let msg = Message::load_from_db(context, msg_id).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user