Skip to content

Commit a5684a5

Browse files
committed
Use the right argument name in init
Turns out Synapse instantiates modules with the keyword argument 'api', see matrix-org/synapse#13060
1 parent 996dec7 commit a5684a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

room_access_rules/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ class RoomAccessRules(object):
9898
def __init__(
9999
self,
100100
config: RoomAccessRulesConfig,
101-
module_api: ModuleApi,
101+
api: ModuleApi,
102102
):
103103
self.config = config
104-
self.module_api = module_api
104+
self.module_api = api
105105

106106
self.module_api.register_third_party_rules_callbacks(
107107
check_event_allowed=self.check_event_allowed,

0 commit comments

Comments
 (0)