extract_edit_target

Function extract_edit_target 

Source
pub fn extract_edit_target(
    event: &Raw<AnySyncTimelineEvent>,
) -> Option<OwnedEventId>
Expand description

Try to extract the target of an edit event, from a raw timeline event, if provided.

The target event is the field located at content.m.relates_to.event_id, if the field at content.m.relates_to.rel_type is m.replace.

Returns None if we couldn’t find it, or if there was an issue during deserialization.