mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 14:56:33 +03:00
pass correct chat_id to REACTIONS_CHANGED event
This commit is contained in:
@@ -847,10 +847,18 @@ async fn add_parts(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if is_mdn || is_reaction {
|
if is_mdn {
|
||||||
chat_id = Some(DC_CHAT_ID_TRASH);
|
chat_id = Some(DC_CHAT_ID_TRASH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let orig_reaction_chat_id = if is_reaction {
|
||||||
|
let orig_reaction_chat_id = chat_id;
|
||||||
|
chat_id = Some(DC_CHAT_ID_TRASH);
|
||||||
|
orig_reaction_chat_id
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
};
|
||||||
|
|
||||||
let chat_id = chat_id.unwrap_or_else(|| {
|
let chat_id = chat_id.unwrap_or_else(|| {
|
||||||
info!(context, "No chat id for message (TRASH)");
|
info!(context, "No chat id for message (TRASH)");
|
||||||
DC_CHAT_ID_TRASH
|
DC_CHAT_ID_TRASH
|
||||||
@@ -1063,7 +1071,7 @@ async fn add_parts(
|
|||||||
set_msg_reaction(
|
set_msg_reaction(
|
||||||
context,
|
context,
|
||||||
&mime_in_reply_to,
|
&mime_in_reply_to,
|
||||||
chat_id,
|
orig_reaction_chat_id.unwrap_or_default(),
|
||||||
from_id,
|
from_id,
|
||||||
Reaction::from(part.msg.as_str()),
|
Reaction::from(part.msg.as_str()),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user