Skip to content

Commit

Permalink
Use the right argument name in init (#5)
Browse files Browse the repository at this point in the history
Turns out Synapse instantiates modules with the keyword argument 'api', see matrix-org/synapse#13060
  • Loading branch information
babolivier committed Jun 15, 2022
1 parent 996dec7 commit 08e0191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions room_access_rules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ class RoomAccessRules(object):
def __init__(
self,
config: RoomAccessRulesConfig,
module_api: ModuleApi,
api: ModuleApi,
):
self.config = config
self.module_api = module_api
self.module_api = api

self.module_api.register_third_party_rules_callbacks(
check_event_allowed=self.check_event_allowed,
Expand Down

0 comments on commit 08e0191

Please sign in to comment.