mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-17 04:54:34 -04:00
Various typos and bug fixes.
This commit is contained in:
parent
6630e1b579
commit
d044121168
8 changed files with 80 additions and 80 deletions
|
@ -58,6 +58,7 @@ class EventCache(object):
|
|||
|
||||
class EventContext(object):
|
||||
|
||||
def __init__(self, current_state, auth_events):
|
||||
def __init__(self, current_state=None, auth_events=None):
|
||||
self.current_state = current_state
|
||||
self.auth_events = auth_events
|
||||
self.state_group = None
|
||||
|
|
|
@ -95,4 +95,6 @@ def serialize_event(hs, e):
|
|||
d["unsigned"]["age"] = now - d["unsigned"]["age_ts"]
|
||||
del d["unsigned"]["age_ts"]
|
||||
|
||||
d["user_id"] = d.pop("sender", None)
|
||||
|
||||
return d
|
Loading…
Add table
Add a link
Reference in a new issue