mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
Save event actions to the db
This commit is contained in:
parent
a84a693327
commit
aa667ee396
4 changed files with 72 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue