Fix conditions failing if min_depth = 0

This could result in Synapse not fetching prev_events for new events in the room if it has missed some events.
This commit is contained in:
Brendan Abolivier 2020-01-07 12:08:58 +00:00
parent 0495097a7f
commit cd428a93e2
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD
2 changed files with 3 additions and 3 deletions

View file

@ -506,7 +506,7 @@ class EventFederationStore(EventFederationWorkerStore):
def _update_min_depth_for_room_txn(self, txn, room_id, depth):
min_depth = self._get_min_depth_interaction(txn, room_id)
if min_depth and depth >= min_depth:
if min_depth is not None and depth >= min_depth:
return
self.db.simple_upsert_txn(