Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Remove undocumented device from pushrules #14727

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/14727.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove undocumented device from /pushrules.
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