mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-23 14:10:41 -04:00
Remove the experimental flag for knocking and use stable prefixes / endpoints. (#10167)
* Room version 7 for knocking. * Stable prefixes and endpoints (both client and federation) for knocking. * Removes the experimental configuration flag.
This commit is contained in:
parent
aac2c49b9b
commit
9e5ab6dd58
13 changed files with 33 additions and 96 deletions
|
@ -333,7 +333,7 @@ class SyncKnockTestCase(
|
|||
self.room_id = self.helper.create_room_as(
|
||||
self.user_id,
|
||||
is_public=False,
|
||||
room_version="xyz.amorgan.knock",
|
||||
room_version="7",
|
||||
tok=self.tok,
|
||||
)
|
||||
|
||||
|
@ -363,7 +363,7 @@ class SyncKnockTestCase(
|
|||
# Knock on a room
|
||||
channel = self.make_request(
|
||||
"POST",
|
||||
"/_matrix/client/unstable/xyz.amorgan.knock/%s" % (self.room_id,),
|
||||
"/_matrix/client/r0/knock/%s" % (self.room_id,),
|
||||
b"{}",
|
||||
self.knocker_tok,
|
||||
)
|
||||
|
@ -371,7 +371,7 @@ class SyncKnockTestCase(
|
|||
|
||||
# We expect to see the knock event in the stripped room state later
|
||||
self.expected_room_state[EventTypes.Member] = {
|
||||
"content": {"membership": "xyz.amorgan.knock", "displayname": "knocker"},
|
||||
"content": {"membership": "knock", "displayname": "knocker"},
|
||||
"state_key": "@knocker:test",
|
||||
}
|
||||
|
||||
|
@ -384,7 +384,7 @@ class SyncKnockTestCase(
|
|||
self.assertEqual(channel.code, 200, channel.json_body)
|
||||
|
||||
# Extract the stripped room state events from /sync
|
||||
knock_entry = channel.json_body["rooms"]["xyz.amorgan.knock"]
|
||||
knock_entry = channel.json_body["rooms"]["knock"]
|
||||
room_state_events = knock_entry[self.room_id]["knock_state"]["events"]
|
||||
|
||||
# Validate that the knock membership event came last
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue