mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Derive current_state_events from state groups
This commit is contained in:
parent
97efe99ae9
commit
09eb08f910
4 changed files with 138 additions and 99 deletions
|
@ -429,6 +429,9 @@ def resolve_events(state_sets, state_map_factory):
|
|||
dict[(str, str), synapse.events.FrozenEvent] is a map from
|
||||
(type, state_key) to event.
|
||||
"""
|
||||
if len(state_sets) == 1:
|
||||
return state_sets[0]
|
||||
|
||||
unconflicted_state, conflicted_state = _seperate(
|
||||
state_sets,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue