diff options
author | reivilibre <oliverw@matrix.org> | 2022-12-13 13:19:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 13:19:19 +0000 |
commit | 62ed877433e23ba055cbc69a089c09d03c67681d (patch) | |
tree | f156f6de4721c8cfb9259713a37ec49ce9b510eb /synapse/push | |
parent | Allow selecting "prejoin" events by state keys (#14642) (diff) | |
download | synapse-62ed877433e23ba055cbc69a089c09d03c67681d.tar.xz |
Improve validation of field size limits in events. (#14664)
Diffstat (limited to 'synapse/push')
-rw-r--r-- | synapse/push/bulk_push_rule_evaluator.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index 36e5b327ef..f27ba64d53 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -342,10 +342,6 @@ class BulkPushRuleEvaluator: for user_id, level in notification_levels.items(): notification_levels[user_id] = int(level) - room_version_features = event.room_version.msc3931_push_features - if not room_version_features: - room_version_features = [] - evaluator = PushRuleEvaluator( _flatten_dict(event, room_version=event.room_version), room_member_count, @@ -353,7 +349,7 @@ class BulkPushRuleEvaluator: notification_levels, related_events, self._related_event_match_enabled, - room_version_features, + event.room_version.msc3931_push_features, self.hs.config.experimental.msc1767_enabled, # MSC3931 flag ) |