matrix_sdk_base

Function apply_redaction

Source
pub fn apply_redaction(
    event: &Raw<AnySyncTimelineEvent>,
    raw_redaction: &Raw<SyncRoomRedactionEvent>,
    room_version: &RoomVersionId,
) -> Option<Raw<AnySyncTimelineEvent>>
Expand description

Apply a redaction to the given target event, given the raw redaction event and the room version.