mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
fix: receive_imf: Report replaced message id in MsgsChanged if chat is the same
This commit is contained in:
@@ -1007,7 +1007,10 @@ pub(crate) async fn receive_imf_inner(
|
|||||||
} else if received_msg.hidden {
|
} else if received_msg.hidden {
|
||||||
// No need to emit an event about the changed message
|
// No need to emit an event about the changed message
|
||||||
} else if let Some(replace_chat_id) = replace_chat_id {
|
} else if let Some(replace_chat_id) = replace_chat_id {
|
||||||
context.emit_msgs_changed_without_msg_id(replace_chat_id);
|
match replace_chat_id == chat_id {
|
||||||
|
false => context.emit_msgs_changed_without_msg_id(replace_chat_id),
|
||||||
|
true => context.emit_msgs_changed(chat_id, replace_msg_id.unwrap_or_default()),
|
||||||
|
}
|
||||||
} else if !chat_id.is_trash() {
|
} else if !chat_id.is_trash() {
|
||||||
let fresh = received_msg.state == MessageState::InFresh
|
let fresh = received_msg.state == MessageState::InFresh
|
||||||
&& mime_parser.is_system_message != SystemMessage::CallAccepted
|
&& mime_parser.is_system_message != SystemMessage::CallAccepted
|
||||||
|
|||||||
Reference in New Issue
Block a user