From 36c59c50c88d8ac163f7ae41ea8eef834c7cf445 Mon Sep 17 00:00:00 2001 From: "Jeyachandran.Rathnam" Date: Wed, 14 Dec 2022 20:20:28 -0500 Subject: [PATCH] Fix #12482 : Remove undocumented device from /pushrules --- synapse/push/clientformat.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/synapse/push/clientformat.py b/synapse/push/clientformat.py index 622a1e35c5fe..bb76c169c6ce 100644 --- a/synapse/push/clientformat.py +++ b/synapse/push/clientformat.py @@ -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"])