Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

get rid of (most of) have_events from _update_auth_events_and_context_for_auth #6468

Merged
merged 1 commit into from
Dec 4, 2019

Commits on Dec 4, 2019

  1. get rid of (most of) have_events from _update_auth_events_and_context…

    …_for_auth
    
    have_events was a map from event_id to rejection reason (or None) for events
    which are in our local database. It was used as filter on the list of
    event_ids being passed into get_events_as_list. However, since
    get_events_as_list will ignore any event_ids that are unknown or rejected, we
    can equivalently just leave it to get_events_as_list to do the filtering.
    
    That means that we don't have to keep `have_events` up-to-date, and can use
    `have_seen_events` instead of `get_seen_events_with_rejection` in the one place
    we do need it.
    richvdh committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    b4705b4 View commit details
    Browse the repository at this point in the history