diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-11-04 13:25:13 +0000 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-11-04 13:25:13 +0000 |
commit | 8ea530a7e593ac4dd0b4d9a169367570d730cb26 (patch) | |
tree | 908f711edd8d426719d9b41775607f0a63c7c0d5 | |
parent | Fix up log contexts in _get_state_for_group_fire_request (diff) | |
download | synapse-8ea530a7e593ac4dd0b4d9a169367570d730cb26.tar.xz |
Check != against StateFilter.none() for clarity
-rw-r--r-- | synapse/storage/databases/state/store.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/state/store.py b/synapse/storage/databases/state/store.py index 79c26a379d..c230822dbb 100644 --- a/synapse/storage/databases/state/store.py +++ b/synapse/storage/databases/state/store.py @@ -364,7 +364,7 @@ class StateGroupDataStore(StateBackgroundUpdateStore, SQLBaseStore): fired_off_requests = [] - if state_filter_left_over.types or state_filter_left_over.include_others: + if state_filter_left_over != StateFilter.none(): # we need to fire off a request for remaining state # REVIEW log contexts? fired_off_requests.append( |