deltachat::reaction

Function set_msg_reaction

source
pub(crate) async fn set_msg_reaction(
    context: &Context,
    in_reply_to: &str,
    chat_id: ChatId,
    contact_id: ContactId,
    timestamp: i64,
    reaction: Reaction,
    is_incoming_fresh: bool,
) -> Result<()>
Expand description

Updates reaction of contact_id on the message with in_reply_to Message-ID. If no such message is found in the database, reaction is ignored.

reaction is a space-separated string of emojis. It can be empty if contact wants to remove all reactions.