deltachat::chat

Function save_copy_in_self_talk

source
pub(crate) async fn save_copy_in_self_talk(
    context: &Context,
    src_msg_id: &MsgId,
    dest_rfc724_mid: &String,
) -> Result<String>
Expand description

Saves a copy of the given message in “Saved Messages” using the given RFC724 id. To allow UIs to have a “show in context” button, the copy contains a reference to the original message as well as to the original chat in case the original message gets deleted. Returns data needed to add a SaveMessage sync item.