only get member state IDs for incremental syncs if we're filtering

pull/3567/head
Matthew Hodgson 2018-03-18 21:40:35 +00:00
parent 0b56290f0b
commit 366f730bf6
1 changed files with 5 additions and 5 deletions

View File

@ -557,14 +557,14 @@ class SyncHandler(object):
current=current_state_ids,
)
else:
state_ids = {}
if filter_members:
# strip off the (None, None) and filter to just room members
types = types[:-1]
state_ids = yield self.store.get_state_ids_for_event(
batch.events[0].event_id, types=types
)
else:
state_ids = {}
if types:
state_ids = yield self.store.get_state_ids_for_event(
batch.events[0].event_id, types=types
)
state = {}
if state_ids: