summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorTravis Ralston <travisr@matrix.org>2022-02-18 05:48:23 -0700
committerGitHub <noreply@github.com>2022-02-18 07:48:23 -0500
commit19bd9cff1afba2149ae58cd5b5648470c48d51a5 (patch)
tree318bffa8d5fc11d274e8fa4f47727ab9c60dd159 /synapse
parentFix 500 error with Postgres when looking backwards with the MSC3030 `/timesta... (diff)
downloadsynapse-19bd9cff1afba2149ae58cd5b5648470c48d51a5.tar.xz
Use stable MSC3069 `is_guest` flag on `/whoami`. (#12021)
Keeping backwards compatibility with the unstable flag for now.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/account.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/client/account.py b/synapse/rest/client/account.py
index cfa2aee76d..efe299e698 100644
--- a/synapse/rest/client/account.py
+++ b/synapse/rest/client/account.py
@@ -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