diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-01 20:28:11 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-01 20:28:11 +0100 |
commit | a85612baf834e805d9174cd2e0c45c3d2b4b74f5 (patch) | |
tree | b9c869901d2252c42cc7a571411046f16078f2f0 /synapse/api/events/room.py | |
parent | Update readme with instructions on how to generate configs for homeservers (diff) | |
parent | Don't put required power levels on permission state events (diff) | |
download | synapse-a85612baf834e805d9174cd2e0c45c3d2b4b74f5.tar.xz |
Merge branch 'room_config' into develop
Diffstat (limited to 'synapse/api/events/room.py')
-rw-r--r-- | synapse/api/events/room.py | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/synapse/api/events/room.py b/synapse/api/events/room.py index 9faad57ac0..f6d3c59a9a 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,45 @@ 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 RoomAddStateLevelEvent(SynapseStateEvent): + TYPE = "m.room.add_state_level" + + def get_content_template(self): + return {} + + +class RoomSendEventLevelEvent(SynapseStateEvent): + TYPE = "m.room.send_event_level" + + def get_content_template(self): + return {} + + +class RoomOpsPowerLevelsEvent(SynapseStateEvent): + TYPE = "m.room.ops_levels" + + def get_content_template(self): + return {} |