Remove support for the unstable identifier from MSC3288. (#515)
This commit is contained in:
parent
a0aeb8470d
commit
7c76e2fcec
1
changelog.d/515.misc
Normal file
1
changelog.d/515.misc
Normal file
@ -0,0 +1 @@
|
||||
Remove support for the unstable identifier from [MSC3288](https://github.com/matrix-org/matrix-doc/pull/3288).
|
@ -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
|
||||
|
@ -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,)
|
||||
|
Loading…
x
Reference in New Issue
Block a user