mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Drop vdh support
This commit is contained in:
parent
38590a4870
commit
47e2dd1994
@ -105,7 +105,6 @@ class RoomVersions(object):
|
|||||||
V1 = "1"
|
V1 = "1"
|
||||||
V2 = "2"
|
V2 = "2"
|
||||||
V3 = "3" # Not currently fully supported, so we don't add to known versions below
|
V3 = "3" # Not currently fully supported, so we don't add to known versions below
|
||||||
VDH_TEST = "vdh-test-version"
|
|
||||||
STATE_V2_TEST = "state-v2-test"
|
STATE_V2_TEST = "state-v2-test"
|
||||||
|
|
||||||
|
|
||||||
@ -117,7 +116,6 @@ DEFAULT_ROOM_VERSION = RoomVersions.V1
|
|||||||
KNOWN_ROOM_VERSIONS = {
|
KNOWN_ROOM_VERSIONS = {
|
||||||
RoomVersions.V1,
|
RoomVersions.V1,
|
||||||
RoomVersions.V2,
|
RoomVersions.V2,
|
||||||
RoomVersions.VDH_TEST,
|
|
||||||
RoomVersions.STATE_V2_TEST,
|
RoomVersions.STATE_V2_TEST,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -448,7 +448,7 @@ def check_redaction(room_version, event, auth_events):
|
|||||||
if user_level >= redact_level:
|
if user_level >= redact_level:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if room_version in (RoomVersions.V1, RoomVersions.V2, RoomVersions.VDH_TEST):
|
if room_version in (RoomVersions.V1, RoomVersions.V2,):
|
||||||
redacter_domain = get_domain_from_id(event.event_id)
|
redacter_domain = get_domain_from_id(event.event_id)
|
||||||
redactee_domain = get_domain_from_id(event.redacts)
|
redactee_domain = get_domain_from_id(event.redacts)
|
||||||
if redacter_domain == redactee_domain:
|
if redacter_domain == redactee_domain:
|
||||||
|
@ -38,7 +38,6 @@ def get_event_builder(room_version, key_values={}, internal_metadata_dict={}):
|
|||||||
if room_version in {
|
if room_version in {
|
||||||
RoomVersions.V1,
|
RoomVersions.V1,
|
||||||
RoomVersions.V2,
|
RoomVersions.V2,
|
||||||
RoomVersions.VDH_TEST,
|
|
||||||
RoomVersions.STATE_V2_TEST,
|
RoomVersions.STATE_V2_TEST,
|
||||||
}:
|
}:
|
||||||
return EventBuilder(key_values, internal_metadata_dict)
|
return EventBuilder(key_values, internal_metadata_dict)
|
||||||
@ -101,7 +100,6 @@ class EventBuilderFactory(object):
|
|||||||
if room_version not in {
|
if room_version not in {
|
||||||
RoomVersions.V1,
|
RoomVersions.V1,
|
||||||
RoomVersions.V2,
|
RoomVersions.V2,
|
||||||
RoomVersions.VDH_TEST,
|
|
||||||
RoomVersions.STATE_V2_TEST,
|
RoomVersions.STATE_V2_TEST,
|
||||||
}:
|
}:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
|
@ -608,7 +608,7 @@ def resolve_events_with_store(room_version, state_sets, event_map, state_res_sto
|
|||||||
state_sets, event_map, state_res_store.get_events,
|
state_sets, event_map, state_res_store.get_events,
|
||||||
)
|
)
|
||||||
elif room_version in (
|
elif room_version in (
|
||||||
RoomVersions.VDH_TEST, RoomVersions.STATE_V2_TEST, RoomVersions.V2,
|
RoomVersions.STATE_V2_TEST, RoomVersions.V2,
|
||||||
):
|
):
|
||||||
return v2.resolve_events_with_store(
|
return v2.resolve_events_with_store(
|
||||||
room_version, state_sets, event_map, state_res_store,
|
room_version, state_sets, event_map, state_res_store,
|
||||||
|
Loading…
Reference in New Issue
Block a user