Skip to main content

enrich_messages_with_stored

Function enrich_messages_with_stored 

Source
pub fn enrich_messages_with_stored(
    conn: impl DbQuery,
    group_id: &GroupId,
    messages: Vec<StoredGroupMessage>,
) -> Result<Vec<EnrichedStoredMessage>, EnrichMessageError>
Expand description

Enrich every stored row. Content that fails to decode stays in the list as an undecodable body; only a database failure is an error.