mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 21:34:34 -05:00
Add fast path in state res for zero prev events
This commit is contained in:
parent
ce6db0e547
commit
bb99b1f550
@ -361,7 +361,12 @@ class StateHandler(object):
|
||||
room_id, event_ids
|
||||
)
|
||||
|
||||
if len(state_groups_ids) == 1:
|
||||
if len(state_groups_ids) == 0:
|
||||
defer.returnValue(_StateCacheEntry(
|
||||
state={},
|
||||
state_group=None,
|
||||
))
|
||||
elif len(state_groups_ids) == 1:
|
||||
name, state_list = list(state_groups_ids.items()).pop()
|
||||
|
||||
prev_group, delta_ids = yield self.store.get_state_group_delta(name)
|
||||
|
Loading…
Reference in New Issue
Block a user