mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-12 04:52:26 +01:00
typos
This commit is contained in:
parent
9b334b3f97
commit
8713365265
2 changed files with 4 additions and 2 deletions
|
@ -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 a new issue