mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 10:54:20 -05:00
typos
This commit is contained in:
parent
9b334b3f97
commit
8713365265
@ -471,13 +471,13 @@ class SyncHandler(object):
|
||||
if filter_members:
|
||||
# We only request state for the members needed to display the
|
||||
# timeline:
|
||||
types = (
|
||||
types = [
|
||||
(EventTypes.Member, state_key)
|
||||
for state_key in set(
|
||||
event.sender # FIXME: we also care about targets etc.
|
||||
for event in batch.events
|
||||
)
|
||||
)
|
||||
]
|
||||
types.append((None, None)) # don't just filter to room members
|
||||
|
||||
# TODO: we should opportunistically deduplicate these members too
|
||||
|
@ -301,6 +301,8 @@ class StateGroupWorkerStore(SQLBaseStore):
|
||||
args = [next_group]
|
||||
if types:
|
||||
args.extend(i for typ in types for i in typ)
|
||||
if include_other_types:
|
||||
args.extend(typ for (typ, _) in types)
|
||||
|
||||
txn.execute(
|
||||
"SELECT type, state_key, event_id FROM state_groups_state"
|
||||
|
Loading…
Reference in New Issue
Block a user