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/room.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/room.py')
-rw-r--r-- | synapse/api/events/room.py | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/synapse/api/events/room.py b/synapse/api/events/room.py index 9faad57ac0..b63529bb31 100644 --- a/synapse/api/events/room.py +++ b/synapse/api/events/room.py @@ -15,7 +15,7 @@ from synapse.api.constants import Feedback, Membership from synapse.api.errors import SynapseError -from . import SynapseEvent +from . import SynapseEvent, SynapseStateEvent class GenericEvent(SynapseEvent): @@ -132,3 +132,31 @@ class RoomConfigEvent(SynapseEvent): def get_content_template(self): return {} + + +class RoomCreateEvent(SynapseStateEvent): + TYPE = "m.room.create" + + def get_content_template(self): + return {} + + +class RoomJoinRulesEvent(SynapseStateEvent): + TYPE = "m.room.join_rules" + + def get_content_template(self): + return {} + + +class RoomPowerLevelsEvent(SynapseStateEvent): + TYPE = "m.room.power_levels" + + def get_content_template(self): + return {} + + +class RoomDefaultLevelEvent(SynapseStateEvent): + TYPE = "m.room.default_level" + + def get_content_template(self): + return {} |