mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-01 09:44:24 -04:00
Use stable MSC3069 is_guest
flag on /whoami
. (#12021)
Keeping backwards compatibility with the unstable flag for now.
This commit is contained in:
parent
5a6911598a
commit
19bd9cff1a
3 changed files with 9 additions and 3 deletions
|
@ -883,7 +883,9 @@ class WhoamiRestServlet(RestServlet):
|
|||
response = {
|
||||
"user_id": requester.user.to_string(),
|
||||
# MSC: https://github.com/matrix-org/matrix-doc/pull/3069
|
||||
# Entered spec in Matrix 1.2
|
||||
"org.matrix.msc3069.is_guest": bool(requester.is_guest),
|
||||
"is_guest": bool(requester.is_guest),
|
||||
}
|
||||
|
||||
# Appservices and similar accounts do not have device IDs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue