mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
Do not overwrite better_msg if apply_group_changes returns None
This commit is contained in:
@@ -600,7 +600,7 @@ async fn add_parts(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
better_msg = apply_group_changes(
|
better_msg = better_msg.or(apply_group_changes(
|
||||||
context,
|
context,
|
||||||
mime_parser,
|
mime_parser,
|
||||||
sent_timestamp,
|
sent_timestamp,
|
||||||
@@ -608,7 +608,7 @@ async fn add_parts(
|
|||||||
from_id,
|
from_id,
|
||||||
to_ids,
|
to_ids,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?);
|
||||||
}
|
}
|
||||||
|
|
||||||
if chat_id.is_none() {
|
if chat_id.is_none() {
|
||||||
@@ -824,7 +824,7 @@ async fn add_parts(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(chat_id) = chat_id {
|
if let Some(chat_id) = chat_id {
|
||||||
better_msg = apply_group_changes(
|
better_msg = better_msg.or(apply_group_changes(
|
||||||
context,
|
context,
|
||||||
mime_parser,
|
mime_parser,
|
||||||
sent_timestamp,
|
sent_timestamp,
|
||||||
@@ -832,7 +832,7 @@ async fn add_parts(
|
|||||||
from_id,
|
from_id,
|
||||||
to_ids,
|
to_ids,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?);
|
||||||
}
|
}
|
||||||
|
|
||||||
if chat_id.is_none() && self_sent {
|
if chat_id.is_none() && self_sent {
|
||||||
|
|||||||
Reference in New Issue
Block a user