diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-01 13:44:19 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-01 14:39:09 +0100 |
commit | 865469f233aa37d3fa0de9a77dfb6bc597c569d7 (patch) | |
tree | 2bbd9037e0ac535369c0eb8485f8610ba28d700c /synapse/api/events/room.py | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into room_config (diff) | |
download | synapse-865469f233aa37d3fa0de9a77dfb6bc597c569d7.tar.xz |
Implement power level lists, default power levels and send_evnet_level/add_state_level events.
Diffstat (limited to 'synapse/api/events/room.py')
-rw-r--r-- | synapse/api/events/room.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/synapse/api/events/room.py b/synapse/api/events/room.py index b63529bb31..6b431e24ea 100644 --- a/synapse/api/events/room.py +++ b/synapse/api/events/room.py @@ -155,8 +155,15 @@ class RoomPowerLevelsEvent(SynapseStateEvent): return {} -class RoomDefaultLevelEvent(SynapseStateEvent): - TYPE = "m.room.default_level" +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 {} |