mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 23:15:02 -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
|
@ -486,8 +486,9 @@ class WhoamiTestCase(unittest.HomeserverTestCase):
|
|||
{
|
||||
"user_id": user_id,
|
||||
"device_id": device_id,
|
||||
# Unstable until MSC3069 enters spec
|
||||
# MSC3069 entered spec in Matrix 1.2 but maintained compatibility
|
||||
"org.matrix.msc3069.is_guest": False,
|
||||
"is_guest": False,
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -505,8 +506,9 @@ class WhoamiTestCase(unittest.HomeserverTestCase):
|
|||
{
|
||||
"user_id": user_id,
|
||||
"device_id": device_id,
|
||||
# Unstable until MSC3069 enters spec
|
||||
# MSC3069 entered spec in Matrix 1.2 but maintained compatibility
|
||||
"org.matrix.msc3069.is_guest": True,
|
||||
"is_guest": True,
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -528,8 +530,9 @@ class WhoamiTestCase(unittest.HomeserverTestCase):
|
|||
whoami,
|
||||
{
|
||||
"user_id": user_id,
|
||||
# Unstable until MSC3069 enters spec
|
||||
# MSC3069 entered spec in Matrix 1.2 but maintained compatibility
|
||||
"org.matrix.msc3069.is_guest": False,
|
||||
"is_guest": False,
|
||||
},
|
||||
)
|
||||
self.assertFalse(hasattr(whoami, "device_id"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue