Skip to content
Snippets Groups Projects
  • Richard van der Hoff's avatar
    a5d2ea3d
    Check *all* auth events for room id and rejection (#11009) · a5d2ea3d
    Richard van der Hoff authored
    This fixes a bug where we would accept an event whose `auth_events` include
    rejected events, if the rejected event was shadowed by another `auth_event`
    with same `(type, state_key)`.
    
    The approach is to pass a list of auth events into
    `check_auth_rules_for_event` instead of a dict, which of course means updating
    the call sites.
    
    This is an extension of #10956.
    Check *all* auth events for room id and rejection (#11009)
    Richard van der Hoff authored
    This fixes a bug where we would accept an event whose `auth_events` include
    rejected events, if the rejected event was shadowed by another `auth_event`
    with same `(type, state_key)`.
    
    The approach is to pass a list of auth events into
    `check_auth_rules_for_event` instead of a dict, which of course means updating
    the call sites.
    
    This is an extension of #10956.