Function do_chat_assignment

Source
async fn do_chat_assignment(
    context: &Context,
    chat_assignment: &ChatAssignment,
    from_id: ContactId,
    to_ids: &[Option<ContactId>],
    past_ids: &[Option<ContactId>],
    to_id: ContactId,
    allow_creation: bool,
    mime_parser: &mut MimeMessage,
    is_partial_download: Option<u32>,
    parent_message: Option<Message>,
) -> Result<(ChatId, Blocked, bool)>
Expand description

Assigns the message to a chat.

Creates a new chat if necessary.

Returns the chat ID, whether it is blocked and if the chat was created by this function (as opposed to being looked up among existing chats).