Create the correct events with the right configuration when creating a new room.

This commit is contained in:
Erik Johnston 2014-08-28 10:59:15 +01:00
parent f3f32addca
commit d2bc5d6f29
5 changed files with 104 additions and 21 deletions

View file

@ -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)