summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2019-01-24 18:32:30 +0000
committerGitHub <noreply@github.com>2019-01-24 18:32:30 +0000
commit664b7a2920ee481359e0cf3df35a16ec0948526e (patch)
tree8d3d6e7357ce5382fc9d0611ff97b6060a495ccc /synapse/api
parentMerge pull request #4461 from matrix-org/anoa/room_dir_quick_fix (diff)
parentUpdate newsfile (diff)
downloadsynapse-664b7a2920ee481359e0cf3df35a16ec0948526e.tar.xz
Merge pull request #4437 from matrix-org/erikj/event_format_version_v2
Add support for persisting event format versions
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/constants.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 46c4b4b9dc..51ee078bc3 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -120,6 +120,19 @@ KNOWN_ROOM_VERSIONS = {
     RoomVersions.STATE_V2_TEST,
 }
 
+
+class EventFormatVersions(object):
+    """This is an internal enum for tracking the version of the event format,
+    independently from the room version.
+    """
+    V1 = 1
+
+
+KNOWN_EVENT_FORMAT_VERSIONS = {
+    EventFormatVersions.V1,
+}
+
+
 ServerNoticeMsgType = "m.server_notice"
 ServerNoticeLimitReached = "m.server_notice.usage_limit_reached"