Skip to content
Snippets Groups Projects
Unverified Commit 58d2adc3 authored by Jeyachandran Rathnam's avatar Jeyachandran Rathnam Committed by GitHub
Browse files

Remove undocumented device from pushrules (#14727)


* Remove undocumented device from pushrules

* Add changelog

* Update changelog.d/14727.misc

* Rename 14727.misc to 14727.bugfix

Co-authored-by: default avatarDavid Robertson <davidr@element.io>
parent c7b2c311
No related branches found
No related tags found
No related merge requests found
Remove the unspecced `device` field from `/pushrules` responses.
......@@ -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"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment