mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 00:46:31 +03:00
fix: assign webxdc updates from post-message to webxdc instance
This commit is contained in:
@@ -876,11 +876,19 @@ UPDATE config SET value=? WHERE keyname='configured_addr' AND value!=?1
|
||||
.is_some_and(|part| part.typ == Viewtype::Webxdc)
|
||||
{
|
||||
can_info_msg = false;
|
||||
Some(
|
||||
Message::load_from_db(context, insert_msg_id)
|
||||
.await
|
||||
.context("Failed to load just created webxdc instance")?,
|
||||
)
|
||||
if mime_parser.pre_message == PreMessageMode::Post {
|
||||
if let Some(msg_id) = message::rfc724_mid_exists(context, rfc724_mid_orig).await? {
|
||||
Message::load_from_db_optional(context, msg_id).await?
|
||||
} else {
|
||||
None
|
||||
}
|
||||
} else {
|
||||
Some(
|
||||
Message::load_from_db(context, insert_msg_id)
|
||||
.await
|
||||
.context("Failed to load just created webxdc instance")?,
|
||||
)
|
||||
}
|
||||
} else if let Some(field) = mime_parser.get_header(HeaderDef::InReplyTo) {
|
||||
if let Some(instance) =
|
||||
message::get_by_rfc724_mids(context, &parse_message_ids(field)).await?
|
||||
|
||||
Reference in New Issue
Block a user