mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
There's no third_party_signed property in an invite's content
This commit is contained in:
parent
048f86ef5d
commit
34dd738e4b
@ -454,11 +454,8 @@ class RoomAccessRules(object):
|
||||
invite (EventBase): The m.room.member event with "invite" membership.
|
||||
threepid_invite_token (str): The state key from the 3PID invite.
|
||||
"""
|
||||
if "third_party_signed" in invite.content:
|
||||
token = invite.content.get("third_party_signed", {}).get("token", "")
|
||||
else:
|
||||
token = invite.content.get(
|
||||
"third_party_invite", {},
|
||||
).get("signed", {}).get("token", "")
|
||||
token = invite.content.get(
|
||||
"third_party_invite", {},
|
||||
).get("signed", {}).get("token", "")
|
||||
|
||||
return token == threepid_invite_token
|
||||
|
Loading…
Reference in New Issue
Block a user