Skip to content

Commit

Permalink
Fix matrix-org#12482 : Remove undocumented device from /pushrules
Browse files Browse the repository at this point in the history
  • Loading branch information
JeyRathnam committed Dec 15, 2022
1 parent 79062b5 commit 36c59c5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions synapse/push/clientformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ def format_push_rules_for_user(
"""Converts a list of rawrules and a enabled map into nested dictionaries
to match the Matrix client-server format for push rules"""

rules: Dict[str, Dict[str, List[Dict[str, Any]]]] = {
"global": {},
"device": {},
}
rules: Dict[str, Dict[str, List[Dict[str, Any]]]] = {"global": {}}

rules["global"] = _add_empty_priority_class_arrays(rules["global"])

Expand Down

0 comments on commit 36c59c5

Please sign in to comment.