Fix _filter_events_for_client
This commit is contained in:
parent
cfa62007a3
commit
7b0e797080
2 changed files with 2 additions and 6 deletions
|
@ -145,9 +145,7 @@ class MessageHandler(BaseHandler):
|
|||
)
|
||||
)
|
||||
|
||||
def allowed(event_and_state):
|
||||
event, state = event_and_state
|
||||
|
||||
def allowed(event, state):
|
||||
if event.type == EventTypes.RoomHistoryVisibility:
|
||||
return True
|
||||
|
||||
|
|
|
@ -302,9 +302,7 @@ class SyncHandler(BaseHandler):
|
|||
)
|
||||
)
|
||||
|
||||
def allowed(event_and_state):
|
||||
event, state = event_and_state
|
||||
|
||||
def allowed(event, state):
|
||||
if event.type == EventTypes.RoomHistoryVisibility:
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue