summary refs log tree commit diff
path: root/synapse/rest/client/v1/push_rule.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-06-03 11:44:32 +0100
committerErik Johnston <erik@matrix.org>2016-06-03 11:44:32 +0100
commit722472b48c6b54b53be4649b68e50c2b9bccc39c (patch)
tree1fce6497d0eaa66811259c00137c9c36e7bb121e /synapse/rest/client/v1/push_rule.py
parentMerge pull request #824 from matrix-org/markjh/slaved_presence_store (diff)
parentLoad push rules in storage layer, so that they get cached (diff)
downloadsynapse-722472b48c6b54b53be4649b68e50c2b9bccc39c.tar.xz
Merge pull request #825 from matrix-org/erikj/cache_push_rules
Load push rules in storage layer so that they get cached
Diffstat (limited to 'synapse/rest/client/v1/push_rule.py')
-rw-r--r--synapse/rest/client/v1/push_rule.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py

index 02d837ee6a..6bb4821ec6 100644 --- a/synapse/rest/client/v1/push_rule.py +++ b/synapse/rest/client/v1/push_rule.py
@@ -128,11 +128,9 @@ class PushRuleRestServlet(ClientV1RestServlet): # we build up the full structure and then decide which bits of it # to send which means doing unnecessary work sometimes but is # is probably not going to make a whole lot of difference - rawrules = yield self.store.get_push_rules_for_user(user_id) + rules = yield self.store.get_push_rules_for_user(user_id) - enabled_map = yield self.store.get_push_rules_enabled_for_user(user_id) - - rules = format_push_rules_for_user(requester.user, rawrules, enabled_map) + rules = format_push_rules_for_user(requester.user, rules) path = request.postpath[1:]