mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 16:39:25 -05:00
Fix _filter_events_for_client
This commit is contained in:
parent
cfa62007a3
commit
7b0e797080
@ -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 New Issue
Block a user