mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 01:09:21 -05:00
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: David Robertson <davidr@element.io>
This commit is contained in:
parent
c7b2c31161
commit
58d2adc3da
1
changelog.d/14727.bugfix
Normal file
1
changelog.d/14727.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
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
|
"""Converts a list of rawrules and a enabled map into nested dictionaries
|
||||||
to match the Matrix client-server format for push rules"""
|
to match the Matrix client-server format for push rules"""
|
||||||
|
|
||||||
rules: Dict[str, Dict[str, List[Dict[str, Any]]]] = {
|
rules: Dict[str, Dict[str, List[Dict[str, Any]]]] = {"global": {}}
|
||||||
"global": {},
|
|
||||||
"device": {},
|
|
||||||
}
|
|
||||||
|
|
||||||
rules["global"] = _add_empty_priority_class_arrays(rules["global"])
|
rules["global"] = _add_empty_priority_class_arrays(rules["global"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user