diff options
author | H. Shay <hillerys@element.io> | 2023-03-16 14:31:10 -0700 |
---|---|---|
committer | H. Shay <hillerys@element.io> | 2023-03-16 14:31:10 -0700 |
commit | d4ed0a48c185f9c2aae4be48309e14b449d7aa61 (patch) | |
tree | a6f070f45e415b410f554fb4d0f6563fa2e42d09 /synapse/events/third_party_rules.py | |
parent | more develop merge fix (diff) | |
download | synapse-d4ed0a48c185f9c2aae4be48309e14b449d7aa61.tar.xz |
requested changes
Diffstat (limited to '')
-rw-r--r-- | synapse/events/third_party_rules.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/events/third_party_rules.py b/synapse/events/third_party_rules.py index 1b7c6de974..a977faeb25 100644 --- a/synapse/events/third_party_rules.py +++ b/synapse/events/third_party_rules.py @@ -191,6 +191,7 @@ class ThirdPartyEventRules: def register_third_party_rules_callbacks( self, check_event_allowed: Optional[CHECK_EVENT_ALLOWED_CALLBACK] = None, + check_event_allowed_v2: Optional[CHECK_EVENT_ALLOWED_V2_CALLBACK] = None, on_create_room: Optional[ON_CREATE_ROOM_CALLBACK] = None, check_threepid_can_be_invited: Optional[ CHECK_THREEPID_CAN_BE_INVITED_CALLBACK @@ -217,6 +218,9 @@ class ThirdPartyEventRules: if check_event_allowed is not None: self._check_event_allowed_callbacks.append(check_event_allowed) + if check_event_allowed_v2 is not None: + self._check_event_allowed_v2_callbacks.append(check_event_allowed_v2) + if on_create_room is not None: self._on_create_room_callbacks.append(on_create_room) |