Fix _filter_events_for_client

This commit is contained in:
Erik Johnston 2015-08-12 17:05:24 +01:00
parent cfa62007a3
commit 7b0e797080
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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