diff options
author | David Baker <dave@matrix.org> | 2016-01-06 11:58:46 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-06 11:58:46 +0000 |
commit | 992928304f3c95f87a3297799965159d295432ea (patch) | |
tree | 36c9cdac575c154f3c823f0ac6c135e0dd54360e /synapse/storage/event_push_actions.py | |
parent | Add schema change file for is_guest flag (diff) | |
download | synapse-992928304f3c95f87a3297799965159d295432ea.tar.xz |
Delete notifications for redacted events
Diffstat (limited to 'synapse/storage/event_push_actions.py')
-rw-r--r-- | synapse/storage/event_push_actions.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py index 0634af6b62..5b44431ab9 100644 --- a/synapse/storage/event_push_actions.py +++ b/synapse/storage/event_push_actions.py @@ -93,6 +93,18 @@ class EventPushActionsStore(SQLBaseStore): ) defer.returnValue(ret) + @defer.inlineCallbacks + def remove_push_actions_for_event_id(self, room_id, event_id): + def f(txn): + txn.execute( + "DELETE FROM event_push_actions WHERE room_id = ? AND event_id = ?", + (room_id, event_id) + ) + yield self.runInteraction( + "remove_push_actions_for_event_id", + f + ) + class EventPushActionsTable(object): table_name = "event_push_actions" |