mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Finish implementing the new join dance.
This commit is contained in:
parent
1116f5330e
commit
f71627567b
6 changed files with 225 additions and 129 deletions
|
@ -48,6 +48,15 @@ class Auth(object):
|
|||
"""
|
||||
try:
|
||||
if hasattr(event, "room_id"):
|
||||
if not event.old_state_events:
|
||||
# Oh, we don't know what the state of the room was, so we
|
||||
# are trusting that this is allowed (at least for now)
|
||||
defer.returnValue(True)
|
||||
|
||||
if hasattr(event, "outlier") and event.outlier:
|
||||
# TODO (erikj): Auth for outliers is done differently.
|
||||
defer.returnValue(True)
|
||||
|
||||
is_state = hasattr(event, "state_key")
|
||||
|
||||
if event.type == RoomMemberEvent.TYPE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue