mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:26:05 -04:00
Merge pull request #1653 from matrix-org/rav/guest_e2e
Implement E2E for guests
This commit is contained in:
commit
77eca2487c
5 changed files with 29 additions and 14 deletions
|
@ -39,6 +39,9 @@ AuthEventTypes = (
|
|||
EventTypes.ThirdPartyInvite,
|
||||
)
|
||||
|
||||
# guests always get this device id.
|
||||
GUEST_DEVICE_ID = "guest_device"
|
||||
|
||||
|
||||
class Auth(object):
|
||||
"""
|
||||
|
@ -717,7 +720,8 @@ class Auth(object):
|
|||
"user": user,
|
||||
"is_guest": True,
|
||||
"token_id": None,
|
||||
"device_id": None,
|
||||
# all guests get the same device id
|
||||
"device_id": GUEST_DEVICE_ID,
|
||||
}
|
||||
elif rights == "delete_pusher":
|
||||
# We don't store these tokens in the database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue