mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-18 17:10:43 +03:00
Add comment
This commit is contained in:
parent
a98eae5835
commit
095d4f27a1
1 changed files with 7 additions and 0 deletions
|
@ -745,6 +745,13 @@ class SyncHandler(object):
|
||||||
state_ids = {}
|
state_ids = {}
|
||||||
if lazy_load_members:
|
if lazy_load_members:
|
||||||
if types:
|
if types:
|
||||||
|
# We're returning an incremental sync, with no "gap" since
|
||||||
|
# the previous sync, so normally there would be no state to return
|
||||||
|
# But we're lazy-loading, so the client might need some more
|
||||||
|
# member events to understand the events in this timeline.
|
||||||
|
# So we fish out all the member events corresponding to the
|
||||||
|
# timeline here, and then dedupe any redundant ones below.
|
||||||
|
|
||||||
state_ids = yield self.store.get_state_ids_for_event(
|
state_ids = yield self.store.get_state_ids_for_event(
|
||||||
batch.events[0].event_id, types=types,
|
batch.events[0].event_id, types=types,
|
||||||
filtered_types=None, # we only want members!
|
filtered_types=None, # we only want members!
|
||||||
|
|
Loading…
Reference in a new issue