diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-28 10:59:15 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-28 10:59:15 +0100 |
commit | d2bc5d6f29b894516190f24619baf19e216643b7 (patch) | |
tree | c9a952612510bdbf696f7be452e02e4920b76b52 /synapse/api/events/__init__.py | |
parent | Fix typo in NullSource.get_pagination_rows. Remove unused import. (diff) | |
download | synapse-d2bc5d6f29b894516190f24619baf19e216643b7.tar.xz |
Create the correct events with the right configuration when creating a new room.
Diffstat (limited to 'synapse/api/events/__init__.py')
-rw-r--r-- | synapse/api/events/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/api/events/__init__.py b/synapse/api/events/__init__.py index f9653e0b2a..bf8d288acc 100644 --- a/synapse/api/events/__init__.py +++ b/synapse/api/events/__init__.py @@ -152,3 +152,10 @@ class SynapseEvent(JsonEncodedObject): msg = self._check_json(entry, template[key][0]) if msg: return msg + + +class SynapseStateEvent(SynapseEvent): + def __init__(self, **kwargs): + if "state_key" not in kwargs: + kwargs["state_key"] = "" + super(SynapseStateEvent, self).__init__(**kwargs) |