mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:56:02 -04:00
Handle delta_ids being None in _update_context_for_auth_events
it's easier to create the new state group as a delta from the existing one. (There's an outside chance this will help with https://github.com/matrix-org/synapse/issues/3364)
This commit is contained in:
parent
cc99256e90
commit
c1f80effbe
2 changed files with 8 additions and 8 deletions
|
@ -249,7 +249,7 @@ class EventContext(object):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def update_state(self, state_group, prev_state_ids, current_state_ids,
|
||||
delta_ids):
|
||||
prev_group, delta_ids):
|
||||
"""Replace the state in the context
|
||||
"""
|
||||
|
||||
|
@ -260,6 +260,7 @@ class EventContext(object):
|
|||
|
||||
self.state_group = state_group
|
||||
self._prev_state_ids = prev_state_ids
|
||||
self.prev_group = prev_group
|
||||
self._current_state_ids = current_state_ids
|
||||
self.delta_ids = delta_ids
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue