From aa5f5ede3331bf916f459137e9d0df3ac0743093 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 3 May 2022 12:43:12 -0400 Subject: [PATCH] Remove unstable identifiers for MSC3069. (#12596) --- changelog.d/12596.removal | 1 + synapse/rest/client/account.py | 2 -- tests/rest/client/test_account.py | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) create mode 100644 changelog.d/12596.removal diff --git a/changelog.d/12596.removal b/changelog.d/12596.removal new file mode 100644 index 000000000..14fbfb395 --- /dev/null +++ b/changelog.d/12596.removal @@ -0,0 +1 @@ +Remove unstable identifiers from [MSC3069](https://github.com/matrix-org/matrix-doc/pull/3069). diff --git a/synapse/rest/client/account.py b/synapse/rest/client/account.py index 5587cae98..bdc4a9c06 100644 --- a/synapse/rest/client/account.py +++ b/synapse/rest/client/account.py @@ -882,9 +882,7 @@ 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), } diff --git a/tests/rest/client/test_account.py b/tests/rest/client/test_account.py index e00b5c171..e0a11da97 100644 --- a/tests/rest/client/test_account.py +++ b/tests/rest/client/test_account.py @@ -520,8 +520,6 @@ class WhoamiTestCase(unittest.HomeserverTestCase): { "user_id": user_id, "device_id": device_id, - # MSC3069 entered spec in Matrix 1.2 but maintained compatibility - "org.matrix.msc3069.is_guest": False, "is_guest": False, }, ) @@ -540,8 +538,6 @@ class WhoamiTestCase(unittest.HomeserverTestCase): { "user_id": user_id, "device_id": device_id, - # MSC3069 entered spec in Matrix 1.2 but maintained compatibility - "org.matrix.msc3069.is_guest": True, "is_guest": True, }, ) @@ -564,8 +560,6 @@ class WhoamiTestCase(unittest.HomeserverTestCase): whoami, { "user_id": user_id, - # MSC3069 entered spec in Matrix 1.2 but maintained compatibility - "org.matrix.msc3069.is_guest": False, "is_guest": False, }, )