mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 20:09:02 -05:00
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:
parent
0495097a7f
commit
cd428a93e2
2 changed files with 3 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue