Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Include the stable identifier for MSC3288. (#11187)
Browse files Browse the repository at this point in the history
Includes both the stable and unstable identifier to store-invite
calls to the identity server. In the future we should remove the
unstable identifier.
  • Loading branch information
clokep committed Oct 27, 2021
1 parent 179dc8a commit a930da3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/11187.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support the stable room type field for [MSC3288](https://github.com/matrix-org/matrix-doc/pull/3288).
2 changes: 2 additions & 0 deletions synapse/handlers/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,8 @@ async def ask_id_server_for_third_party_invite(
}

if room_type is not None:
invite_config["room_type"] = room_type
# TODO The unstable field is deprecated and should be removed in the future.
invite_config["org.matrix.msc3288.room_type"] = room_type

# If a custom web client location is available, include it in the request.
Expand Down

0 comments on commit a930da3

Please sign in to comment.