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

Use stable MSC3069 is_guest flag on /whoami #12021

Merged
merged 4 commits into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/12021.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support only the stable identifier for [MSC3069](https://github.com/matrix-org/matrix-doc/pull/3069)'s `is_guest` on `/_matrix/client/v3/account/whoami`.
3 changes: 1 addition & 2 deletions synapse/rest/client/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,7 @@ async def on_GET(self, request: SynapseRequest) -> Tuple[int, JsonDict]:

response = {
"user_id": requester.user.to_string(),
# MSC: https://github.com/matrix-org/matrix-doc/pull/3069
"org.matrix.msc3069.is_guest": bool(requester.is_guest),
turt2live marked this conversation as resolved.
Show resolved Hide resolved
"is_guest": bool(requester.is_guest),
}

# Appservices and similar accounts do not have device IDs
Expand Down