Browse Source

Remove support for the unstable identifier from MSC3288. (#515)

Patrick Cloke 2 years ago
parent
commit
7c76e2fcec
3 changed files with 2 additions and 8 deletions
  1. 1 0
      changelog.d/515.misc
  2. 0 1
      docs/templates.md
  3. 1 7
      sydent/http/servlets/store_invite_servlet.py

+ 1 - 0
changelog.d/515.misc

@@ -0,0 +1 @@
+Remove support for the unstable identifier from [MSC3288](https://github.com/matrix-org/matrix-doc/pull/3288).

+ 0 - 1
docs/templates.md

@@ -110,7 +110,6 @@ Variable                | Contents
 `bracketed_room_name`   | The string stored in `room_name` with brackets around it
 `bracketed_verified_sender`      | The string stored in `sender` with brackets around it
 `medium`                | The string "email"
-`org.matrix.msc3288.room_type`   | **UNSTABLE.** The same as `room_type`
 `org.matrix.web_client_location` | **UNSTABLE.** The same as `web_client_location`
 `room_alias`            | An alias for the room (probably more readable than `room_id`)
 `room_avatar_url`       | The URL of the room's avatar

+ 1 - 7
sydent/http/servlets/store_invite_servlet.py

@@ -122,17 +122,11 @@ class StoreInviteServlet(Resource):
             "sender_avatar_url",
             "guest_user_id",
             "guest_access_token",
+            "room_type",
         ]
         for k in extra_substitutions:
             substitutions.setdefault(k, "")
 
-        # For MSC3288 room type, prefer the stable field, but fallback to the
-        # unstable field.
-        if "room_type" not in substitutions:
-            substitutions["room_type"] = substitutions.get(
-                "org.matrix.msc3288.room_type", ""
-            )
-
         substitutions["bracketed_verified_sender"] = ""
         if verified_sender:
             substitutions["bracketed_verified_sender"] = "(%s) " % (verified_sender,)