Skip to main content

project_chat_message

Function project_chat_message 

Source
pub fn project_chat_message(
    original: RumorEvent,
    edits: Vec<RumorEvent>,
    deletions: Vec<RumorEvent>,
) -> Result<MessageProjection, SoftchatError>
Expand description

Apply authorized edit and deletion history without owning persistence.

ยงErrors

Returns SoftchatError::InvalidSoftchatProjection when any supplied history event is malformed, targets another original, or has an unauthorized author.