diff options
author | David Baker <dave@matrix.org> | 2015-12-10 17:51:15 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-12-10 17:51:15 +0000 |
commit | aa667ee396c473f497b084655d47b2a9520a538a (patch) | |
tree | 70ebebbe67f710c164fe4dd92f5e9833777d49b0 /synapse/push | |
parent | Having consulted The Erikle, this should go at the end of on_receive_pdu, oth... (diff) | |
download | synapse-aa667ee396c473f497b084655d47b2a9520a538a.tar.xz |
Save event actions to the db
Diffstat (limited to 'synapse/push')
-rw-r--r-- | synapse/push/action_generator.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/push/action_generator.py b/synapse/push/action_generator.py index 508eeaed95..870c68a0ca 100644 --- a/synapse/push/action_generator.py +++ b/synapse/push/action_generator.py @@ -19,7 +19,6 @@ import push_rule_evaluator import logging - logger = logging.getLogger(__name__) @@ -42,6 +41,9 @@ class ActionGenerator: evaluator = yield push_rule_evaluator.\ evaluator_for_user_name_and_profile_tag( uid, None, event['room_id'], self.store - ) + ) actions = yield evaluator.actions_for_event(event) logger.info("actions for user %s: %s", uid, actions) + self.store.set_actions_for_event( + event['event_id'], uid, None, actions + ) |