Skip to main content

check_replace_target_sender

Function check_replace_target_sender 

Source
pub fn check_replace_target_sender(
    conn: &Connection,
    content: &Value,
    sender_user_id: i64,
) -> Result<(), MatrixError>
Expand description

An m.replace must come from the target event’s ORIGINAL sender (P6 binding rule) — a no-op for content with no m.relates_to, or a rel_type other than m.replace.