Richard van der Hoff fc0f13dd03 Fix incorrect truncation in get_missing_events
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.
2018-10-16 21:10:04 +01:00
..
2018-08-31 00:19:58 +10:00
2018-10-05 15:08:36 +01:00
2018-07-09 16:09:20 +10:00
2018-08-31 00:19:58 +10:00
2018-07-09 16:09:20 +10:00
2018-08-31 00:19:58 +10:00
2018-10-12 11:48:56 +01:00
2018-10-03 10:19:41 +01:00
2018-08-31 00:19:58 +10:00
2018-07-09 16:09:20 +10:00
2018-09-06 23:56:47 +01:00
2018-09-26 16:16:41 +01:00
2018-07-09 16:09:20 +10:00
2018-08-31 00:19:58 +10:00
2018-07-12 09:45:37 +01:00
2018-08-23 19:17:19 +01:00
2018-07-09 16:09:20 +10:00
2018-09-12 00:50:39 +01:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-10 17:58:18 +01:00
2018-07-09 16:09:20 +10:00