mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Add constants for room versions
This commit is contained in:
parent
119451dcd1
commit
152c0aa58e
@ -97,9 +97,14 @@ class ThirdPartyEntityKind(object):
|
|||||||
LOCATION = "location"
|
LOCATION = "location"
|
||||||
|
|
||||||
|
|
||||||
|
class RoomVersions(object):
|
||||||
|
V1 = "1"
|
||||||
|
VDH_TEST = "vdh-test-version"
|
||||||
|
|
||||||
|
|
||||||
# the version we will give rooms which are created on this server
|
# the version we will give rooms which are created on this server
|
||||||
DEFAULT_ROOM_VERSION = "1"
|
DEFAULT_ROOM_VERSION = RoomVersions.V1
|
||||||
|
|
||||||
# vdh-test-version is a placeholder to get room versioning support working and tested
|
# vdh-test-version is a placeholder to get room versioning support working and tested
|
||||||
# until we have a working v2.
|
# until we have a working v2.
|
||||||
KNOWN_ROOM_VERSIONS = {"1", "vdh-test-version"}
|
KNOWN_ROOM_VERSIONS = {RoomVersions.V1, RoomVersions.VDH_TEST}
|
||||||
|
Loading…
Reference in New Issue
Block a user