mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-21 09:01:07 -05:00
handle the edge case for _get_some_state_from_cache where types is []
This commit is contained in:
parent
454f59b7ad
commit
cb5c37a57c
@ -547,6 +547,12 @@ class StateGroupWorkerStore(SQLBaseStore):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if types == [] and filtered_types is not None:
|
||||||
|
# special wildcard case for empty type-list but an explicit filtered_types
|
||||||
|
# which means that we'll try to return all types which aren't in the
|
||||||
|
# filtered_types list. missing_types will always be empty, so we ignore it.
|
||||||
|
got_all = is_all
|
||||||
|
else:
|
||||||
got_all = is_all or not missing_types
|
got_all = is_all or not missing_types
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user