Skip to content
Snippets Groups Projects
  • Erik Johnston's avatar
    e29c4434
    Fix recursion error when fetching auth chain over federation (#7817) · e29c4434
    Erik Johnston authored
    When fetching the state of a room over federation we receive the event
    IDs of the state and auth chain. We then fetch those events that we
    don't already have.
    
    However, we used a function that recursively fetched any missing auth
    events for the fetched events, which can lead to a lot of recursion if
    the server is missing most of the auth chain. This work is entirely
    pointless because would have queued up the missing events in the auth
    chain to be fetched already.
    
    Let's just diable the recursion, since it only gets called from one
    place anyway.
    Fix recursion error when fetching auth chain over federation (#7817)
    Erik Johnston authored
    When fetching the state of a room over federation we receive the event
    IDs of the state and auth chain. We then fetch those events that we
    don't already have.
    
    However, we used a function that recursively fetched any missing auth
    events for the fetched events, which can lead to a lot of recursion if
    the server is missing most of the auth chain. This work is entirely
    pointless because would have queued up the missing events in the auth
    chain to be fetched already.
    
    Let's just diable the recursion, since it only gets called from one
    place anyway.