summary refs log tree commit diff
path: root/synapse/api/events/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-15 16:06:08 +0100
committerErik Johnston <erik@matrix.org>2014-08-15 16:06:08 +0100
commit19946509a4ddbdd647261f9f19358e6f1f0e337b (patch)
treeb1c20c645492901c14c54d3e4085ac94c5acf6e6 /synapse/api/events/room.py
parentFix bug when generating a key when get_room_events_stream returned zero rows (diff)
downloadsynapse-19946509a4ddbdd647261f9f19358e6f1f0e337b.tar.xz
Support generic events.
Diffstat (limited to 'synapse/api/events/room.py')
-rw-r--r--synapse/api/events/room.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/api/events/room.py b/synapse/api/events/room.py
index 8136d495d5..d9b3d572fa 100644
--- a/synapse/api/events/room.py
+++ b/synapse/api/events/room.py
@@ -16,6 +16,10 @@
 from . import SynapseEvent
 
 
+class GenericEvent(SynapseEvent):
+    def get_content_template(self):
+        return {}
+
 class RoomTopicEvent(SynapseEvent):
     TYPE = "m.room.topic"