make incr syncs work

This commit is contained in:
Matthew Hodgson 2018-03-16 00:52:04 +00:00
parent 056a6df546
commit 3bc5bd2d22
1 changed files with 4 additions and 3 deletions

View File

@ -499,7 +499,7 @@ class SyncHandler(object):
if filter_members: if filter_members:
member_state_ids = { member_state_ids = {
t: state_ids[t] t: state_ids[t]
for t in state_ids if t[0] == EventTypes.Member for t in state_ids if state_ids[t][0] == EventTypes.Member
} }
else: else:
@ -512,7 +512,7 @@ class SyncHandler(object):
if filter_members: if filter_members:
member_state_ids = { member_state_ids = {
t: state_ids[t] t: state_ids[t]
for t in state_ids if t[0] == EventTypes.Member for t in state_ids if state_ids[t][0] == EventTypes.Member
} }
timeline_state = { timeline_state = {
@ -543,7 +543,8 @@ class SyncHandler(object):
if filter_members: if filter_members:
member_state_ids = { member_state_ids = {
t: state_at_timeline_start[t] t: state_at_timeline_start[t]
for t in state_at_timeline_start if t[0] == EventTypes.Member for t in state_at_timeline_start
if state_at_timeline_start[t][0] == EventTypes.Member
} }
timeline_state = { timeline_state = {