summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-15 15:18:37 +0000
committerErik Johnston <erik@matrix.org>2018-02-15 15:47:06 +0000
commit4810f7effd0fc3fd97f9edaf8ea0af48477adb0a (patch)
treef0aa8f41febaf3341e6c48f7b7fd66e9919b8030 /synapse/storage
parentUpdate event_push_actions table from staging table (diff)
downloadsynapse-4810f7effd0fc3fd97f9edaf8ea0af48477adb0a.tar.xz
Remove context.push_actions
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/events.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index ca64aacb1c..52b7b34749 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -1168,10 +1168,9 @@ class EventsStore(SQLBaseStore):
 
         for event, context in events_and_contexts:
             # Insert all the push actions into the event_push_actions table.
-            if context.push_actions:
-                self._set_push_actions_for_event_and_users_txn(
-                    txn, event,
-                )
+            self._set_push_actions_for_event_and_users_txn(
+                txn, event,
+            )
 
             if event.type == EventTypes.Redaction and event.redacts is not None:
                 # Remove the entries in the event_push_actions table for the