Skip to content
Snippets Groups Projects
Forked from Maunium / synapse
Source project has a limited visibility.
  • Richard van der Hoff's avatar
    0fd23216
    Fix incorrect truncation in get_missing_events · 0fd23216
    Richard van der Hoff authored
    It's quite important that get_missing_events returns the *latest* events in the
    room; however we were pulling event ids out of the database until we got *at
    least* 10, and then taking the *earliest* of the results.
    
    We also shouldn't really be relying on depth, and should be checking the
    room_id.
    0fd23216
    History
    Fix incorrect truncation in get_missing_events
    Richard van der Hoff authored
    It's quite important that get_missing_events returns the *latest* events in the
    room; however we were pulling event ids out of the database until we got *at
    least* 10, and then taking the *earliest* of the results.
    
    We also shouldn't really be relying on depth, and should be checking the
    room_id.